virtualenvwrapper

virtualenvwrapper and Python 3

≡放荡痞女 提交于 2019-12-20 08:17:15
问题 I installed python 3.3.1 on ubuntu lucid and successfully created a virtualenv as below virtualenv envpy331 --python=/usr/local/bin/python3.3 this created a folder envpy331 on my home dir. I also have virtualenvwrapper installed.But in the docs only 2.4-2.7 versions of python are supported..Has anyone tried to organize the python3 virtualenv ? If so, can you tell me how ? 回答1: The latest version of virtualenvwrapper is tested under Python3.2. Chances are good it will work with Python3.3 too.

Apache Wsgi virtualHost, Django virtual env “no module named django.core.wsgi”

不打扰是莪最后的温柔 提交于 2019-12-20 04:31:29
问题 I have seen plenty of previous messages related to my problem, but no answer could get rid of my "500 Server internal Error" so I try to post my conf to get help. Error Message: [Fri Jun 24 17:05:23.631270 2016] [authz_core:error] [pid 15187:tid 140715758237440] [client 127.0.0.1:47873] AH01630: client denied by server configuration: /home/www/waves/ [Fri Jun 24 17:05:23.631568 2016] [:error] [pid 15186:tid 140715648984832] ['/home/marc/.virtualenvs/waves/lib/python2.7/site-packages', '/home

Apache Wsgi virtualHost, Django virtual env “no module named django.core.wsgi”

时光毁灭记忆、已成空白 提交于 2019-12-20 04:31:23
问题 I have seen plenty of previous messages related to my problem, but no answer could get rid of my "500 Server internal Error" so I try to post my conf to get help. Error Message: [Fri Jun 24 17:05:23.631270 2016] [authz_core:error] [pid 15187:tid 140715758237440] [client 127.0.0.1:47873] AH01630: client denied by server configuration: /home/www/waves/ [Fri Jun 24 17:05:23.631568 2016] [:error] [pid 15186:tid 140715648984832] ['/home/marc/.virtualenvs/waves/lib/python2.7/site-packages', '/home

How to create a virtualenv by cloning the current local environment?

北慕城南 提交于 2019-12-19 17:34:44
问题 Suppose I have a python interpreter with many modules installed on my local system, and it has been tuned to just work. Now I want to create a virtualenv to freeze these, so that they won't be broke by upgrading in the future. How can I make it? Thanks. I can't use pip freeze , because that's a cluster on which there's no pip and I don't have the privileges to install it. And I don't want the reinstall the modules either, I'm looking for that whether there's a cloning way. 回答1: Run pip freeze

Why I am suddenly seeing `Usage: source deactivate` whenever I run virtualenvwrapper commands?

耗尽温柔 提交于 2019-12-18 12:49:56
问题 I never used to see this message before when using virtualenvwrapper, but now I'm suddenly seeing this message whenever I run, say, mkvirtualenv <environment> or workon <environment> : Usage: source deactivate removes the 'bin' directory of the environment activated with 'source activate' from PATH. I haven't modified virtualenvwrapper at all, and a quick google search only yields this GitHub issue -- I did install IPython/Anaconda a while back, but I'm not sure how it might be interfering

deactivate conflict in virtualenvwapper and anaconda

怎甘沉沦 提交于 2019-12-18 11:59:31
问题 I'm using virtualenv to switch my python dev env. But when I run workon my_env , I meet such error message: Error: deactivate must be sourced. Run 'source deactivate' instead of 'deactivate'. Usage: source deactivate removes the 'bin' directory of the environment activated with 'source activate' from PATH. After some searches on google, it seems that workon , which is defined in /usr/local/bin/virtualenvwrapper.sh, calls deactivate . And there is a script with the same name is present in

Python - manually install package using virtualenv

杀马特。学长 韩版系。学妹 提交于 2019-12-18 09:54:42
问题 I have a python program I want to install into my virtualenv - it's a zip package that I need to unzip and then run a setup.py program - but my question is more regarding how to get these unzipped files into my virtualenv so that the package gets installed into the virtualenv's site-packages folder? I can also install from inside my virtualenv using pip install <package name> , but for some reason, the package that PIP downloads is out of date. So - can someone tell me a few easy steps for

Python setup : command not found

耗尽温柔 提交于 2019-12-18 06:13:41
问题 Apologies if this is a basic question: I have been trying to setup Python on my laptop by following the tutorial here. Under PIP, VIRTUALENV + VIRTUALENVWRAPPER subtitle, it says And now setup virtualenvwrapper: 1 $ export WORKON_HOME=$HOME/.virtualenvs 2 $ export MSYS_HOME=/c/msys/1.0 3 $ source /usr/local/bin/virtualenvwrapper.sh The last line of above gives me the following error: $ source /usr/local/bin/virtualenvwrapper.sh sh.exe": /usr/local/bin/virtualenvwrapper.sh: No such file or

How do I change the default virtualenv prompt?

只愿长相守 提交于 2019-12-17 23:20:11
问题 How do you change the default Virtualenvwrapper prompt? By default, working on a particular virtual environment with a command like "workon <_name_of_env_>" prepends the name of the virtualenv to your prompt. This may work poorly if you're not using a default command prompt. 回答1: If you are working on a custom PS1 (as I when found out this issue), I recommend you to disable prompt change, use export VIRTUAL_ENV_DISABLE_PROMPT=1 (see virtualenv docs), and make your own virtualenv prompt in

Terminal issue with virtualenvwrapper after Mavericks Upgrade

随声附和 提交于 2019-12-17 22:09:01
问题 After upgrading to OSX Mavericks, I am getting this message in the terminal: /usr/bin/python: No module named virtualenvwrapper virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly. 回答1: Try reinstalling pip and then reinstalling virtualenvwrapper (I had to go through these steps after