PyLint “Unable to import” error – how to set PYTHONPATH?

I’m running PyLint from inside Wing IDE on Windows. I have a sub-directory (package) in my project and inside the package I import a module from the top level, ie. __init__.py myapp.py one.py subdir\ __init__.py two.py Inside two.py I have import one and this works fine at runtime, because the top-level directory (from which myapp.py … Read more

Cron and virtualenv

I am trying to run a Django management command from cron. I am using virtualenv to keep my project sandboxed. I have seen examples here and elsewhere that show running management commands from within virtualenv’s like: 0 3 * * * source /home/user/project/env/bin/activate && /home/user/project/manage.py command arg However, even though syslog shows an entry when … Read more

What is the purpose of “pip install –user …”?

From pip install –help: –user Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%\Python on Windows. (See the Python documentation for site.USER_BASE for full details.) The documentation for site.USER_BASE is a terrifying wormhole of interesting *NIX subject matter that I don’t understand. What is the purpose of –user in plain … Read more

How to activate virtualenv in Linux?

I have been searching and tried various alternatives without success and spent several days on it now – driving me mad. Running on Red Hat Linux with Python 2.5.2 Began using most recent Virtualenv but could not activate it, I found somewhere suggesting needed earlier version so I have used Virtualenv 1.6.4 as that should … Read more

No acceptable C compiler found in $PATH when installing python

I’m trying to install a new Python environment on my shared hosting. I follow the steps written in this post: mkdir ~/src wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz tar -zxvf Python-2.7.1.tar.gz cd Python-2.7.1 mkdir ~/.localpython ./configure –prefix=/home/<user>/.localpython make make install After coming to the ./configure –prefix=/home/<user>/.localpython command, I get the following output: checking for –enable-universalsdk… no checking for –with-universal-archs… … Read more

Comprehensive beginner’s virtualenv tutorial? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 8 years ago. Improve this question I’ve been hearing the buzz about virtualenv lately, and I’m interested. But all I’ve heard is a smattering of … Read more