virtualenvwrapper

Many Problems with python's virtualenv

喜欢而已 提交于 2019-12-11 13:58:50
问题 I've been having a lot of trouble with getting virtualenv to work. First I installed it via pip and then tried setting up a virtualenv. That didn't work and I got this error message: ResNets-iMac:desktop zachary$ virtualenv anothertest Using base prefix '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents' New python executable in anothertest/bin/python dyld: Library not loaded: @rpath/Python Referenced from: /Users/zachary/Desktop/anothertest/bin/python

Set python version for each virtualenv using virtualenvwrapper

空扰寡人 提交于 2019-12-11 06:58:05
问题 Using virtualenv I can set the python version to a specific virtual environment via th -p option. This means for different environments I can set different python versions. Is there a similar possibility for virtualenvwrapper? Please note I dont want to set a system wide version used in ALL virtual environments. I would like to have the flexibility it to set the python version on virtual environment level. 回答1: You should be able to use the -p option when creating a virtualenv using

Django get environment variables from apache

百般思念 提交于 2019-12-11 02:32:58
问题 I cannot seem to get Django to read the settings I configure from the environment variables. I have followed some guides online, and found some other questions, and as a result have tried configuring as below: Apache Config: WSGIScriptAlias "/v4" /usr/local/myproject4/myproject4/wsgi.py WSGIPythonPath /usr/local/myproject4:/usr/local/myproject4/env/lib/python2.7/site-packages <VirtualHost *:8000> SetEnv MYPROJECT_SECRET_KEY 'xxx' SetEnv MYPROJECT_DB_USER 'xxxx' SetEnv MYPROJECT_DB_PASS 'xxxx'

What else can I do to troubleshoot a package not importing in python yet imports in ipython while in a virtualenv?

微笑、不失礼 提交于 2019-12-10 21:58:30
问题 I am a Python enthusiast who decided to get serious about creating some of my own reusable packages. Synopsis of my problem: Calling python test_dummy.py fails to import a package eforest . An ImportError is thrown. import eforest in the python interpreter and in the ipython interpreter both throw no exceptions. Calling run test_dummy.py within the ipython interpreter throws no exception. All cases are run inside of a virtualenv. virtualenv has nothing to do with my problem. I have posted a

Manage python version in different virtualenv with pythonbrew

余生颓废 提交于 2019-12-08 11:56:08
问题 My main system python version is 2.7.3. I'm trying to create a virtualenv that uses version 3.3.0. I installed pythonbrew, virtualenv and virtualenvwrapper. I followed this tutorial: http://technomilk.wordpress.com/2011/07/27/setting-up-our-django-site-environment-with-pythonbrew-and-virtualenv/ Which essentially runs pythonbrew use 3.3.0 , and then create a virtualenv. The tutorial says that the virtualenv will use the version pythonbrew uses. But it doesn't. The virtualenv uses 2.7.3 when I

Multiple python versions using virtualenv -p (and virtualenvwrapper-win) on Windows

我的梦境 提交于 2019-12-08 02:07:52
问题 I'd like to use multiple versions of python (2.5 and 2.7 is what I need, but would be nice to have 3.2 also). On Windows XP! I'd like to use virtualenvwrapper-win instead of virtualenv -p Here's the method for Unix: Use different Python version with virtualenv Does the same method apply for virtualenvwrapper-win? The source for mkvirtualenv seems to pass the arguments to virtualenv on line 35: https://github.com/davidmarble/virtualenvwrapper-win/blob/master/scripts/mkvirtualenv.bat I thought

Trouble using mkvirtualenv after installing OS X Mavericks

不问归期 提交于 2019-12-07 11:57:03
问题 I recently installed OS X Mavericks. I can access my previously created virtual environments, but I have trouble creating a new one: Christophers-MacBook-Pro-2:~ christopherspears$ mkvirtualenv bottle_todo -bash: /usr/local/bin/virtualenv: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory I looked into /usr/local/bin/virtualenv: #!/usr/local/opt/python/bin/python2.7 # EASY-INSTALL-ENTRY-SCRIPT: 'virtualenv==1.10.1','console_scripts','virtualenv' __requires__ =

differentiate mkvirtualenv and mkproject for virturalenvwrapper

早过忘川 提交于 2019-12-07 07:07:13
问题 I am talking about Doug Hellman's virtualenvwrapper. Well, as per him, once we install virtualenvwrapper, we should edit the .bashrc file as explained here what we do is we add the following three lines of code: export WORKON_HOME=$HOME/.virtualenvs export PROJECT_HOME=$HOME/Devel source /usr/local/bin/virtualenvwrapper.sh where .virtualenv is the directory where the venvs would be placed. Devel is the directory where the code will reside. Observation 1: when i do mkvirtualenv proj1 what

how can I find the path of virtualenv python

独自空忆成欢 提交于 2019-12-06 10:50:44
问题 how can I find the path of virtualenv python ,built with this tutorial? (i want to find python in this env and use it in my eclipse) $ sudo pip install virtualenv virtualenvwrapper $ export WORKON_HOME=$HOME/.virtualenvs $ source /usr/local/bin/virtualenvwrapper.sh $ echo -e "\n# virtualenv and virtualenvwrapper" >> ~/.bashrc $ echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc $ echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc $ source ~/.bashrc $ mkvirtualenv cv -p

Multiple python versions using virtualenv -p (and virtualenvwrapper-win) on Windows

安稳与你 提交于 2019-12-06 04:59:43
I'd like to use multiple versions of python (2.5 and 2.7 is what I need, but would be nice to have 3.2 also). On Windows XP! I'd like to use virtualenvwrapper-win instead of virtualenv -p Here's the method for Unix: Use different Python version with virtualenv Does the same method apply for virtualenvwrapper-win? The source for mkvirtualenv seems to pass the arguments to virtualenv on line 35: https://github.com/davidmarble/virtualenvwrapper-win/blob/master/scripts/mkvirtualenv.bat I thought I would ask if anyone has done this (and to tell others that they can do this) by asking this question