virtualenvwrapper

Running non-system Python with virtualenv in 32bit mode on OS X

此生再无相见时 提交于 2019-12-03 11:26:27
Short Question Using virtualenv / virtualenvwrapper is it possible to add a prefix to the python call that linked to a specific virtual environment? Background I would like to have multiple virtual environment using a brew installed Python 2.7, but some running in 64 bit mode and the others 32bit mode. Below I have the typical setup for my OS X development. The specific prefix I would like to add to the python call is the arch -i386 to force python to run as 32 bit mode. Again the most important part of it is that it would be added only after calling workon env32 (as shown the example). I know

'Permission denied' error when using pip install in virtualenv

梦想与她 提交于 2019-12-03 10:41:46
Edit: FIXED! Just had to chown the .cache directory I've tried the virtualenvwrapper docs instructions, I've tried this guy's instructions as well as these ...I've tried sudo pip uninstall virtualenv , sudo pip uninstall virtualenvwrapper , sudo pip3 uninstall virtualenv , sudo pip3 uninstall virtualenvwrapper before attempting each set of instructions. I've looked at other SO posts like this one , but the sudo issue isn't the same as my own. By this, I mean that I don't use sudo when making the virtualenv, and if I try to use sudo to pip install a package, it'll just say that I've already

ERROR: virtualenvwrapper could not find virtualenv in your path

走远了吗. 提交于 2019-12-03 10:30:21
问题 I'm trying to create a virtualenv with virtualenvwrapper , but when I use mkvirtualenv I get the following : ERROR: virtualenvwrapper could not find virtualenv in your path I assumed it was a PYTHONPATH problem. But if I do a pip show virtualenv I get the following : --- Metadata-Version: 2.0 Name: virtualenv Version: 13.1.0 Summary: Virtual Python Environment builder Home-page: https://virtualenv.pypa.io/ Author: Jannis Leidel, Carl Meyer and Brian Rosner Author-email: python-virtualenv

mkvirtualenv: Too many levels of symbolic links

二次信任 提交于 2019-12-03 09:29:10
I am running virtualenv burrito and getting an error that there are too many levels of symbolic links. I have no idea what that means. mkvirtualenv --python /usr/local/bin/Python3 mantis Error: Running virtualenv with interpreter /usr/local/bin/Python3 Using base prefix '/Library/Frameworks/Python.framework/Versions/3.4' New python executable in mantis/bin/Python3 Also creating executable in mantis/bin/python Traceback (most recent call last): File "/Users/croberts/.venvburrito/lib/python2.7/site-packages/virtualenv.py", line 2352, in <module> main() File "/Users/croberts/.venvburrito/lib

Error using virtualenvwrapper-win passing in different python version

折月煮酒 提交于 2019-12-03 09:22:09
I have python 3.4 and 2.7 installed, the paths to those are C:\python34 and C:\python27. In attempting to make a virtualenv using python 2.7 I get the following errors: C:\Development>mkvirtualenv --python=C:\python27 env Running virtualenv with interpreter C:\python27 Traceback (most recent call last): File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "C:\Python34\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Python34\Scripts\virtualenv.exe\__main__.py", line 9, in <module> File "C:\Python34\lib\site-packages\virtualenv.py",

Setting DJANGO_SETTINGS_MODULE under virtualenv?

萝らか妹 提交于 2019-12-03 09:16:28
问题 I want the environment variable DJANGO_SETTINGS_MODULE to change depending on what I say for workon. It seemed to me that I want to set it in .virtualenvs/postmkvirtualenv but my trial had no effect. ftpmaint@millstone:~$ cat ~/.virtualenvs/postmkvirtualenv #!/bin/bash # This hook is run after a new virtualenv is activated. export DJANGO_SETTINGS_MODULE=newproject.settings ftpmaint@millstone:~$ echo $DJANGO_SETTINGS_MODULE az.settings ftpmaint@millstone:~$ workon newproject (newproject

How to freeze packages installed only in the virtual environment?

…衆ロ難τιáo~ 提交于 2019-12-03 04:44:13
问题 How to freeze packages installed only in the virtual environment, that is, without the global ones? 回答1: You need to use the -l or --local option to freeze only the local packages (and not the global ones) pip freeze -l > requirements.txt Make sure you are working in the virtualenv before doing pip freeze -l . 回答2: Only local packages on virtual environment pip freeze -l > requirements.txt # or --local instead of -l Only local packages installed by the user on virtual environment pip freeze -

Installing virtualenvwrapper on Windows

三世轮回 提交于 2019-12-03 02:37:02
问题 I've installed virtualenv and virtualenvwrapper on Windows using easy_install. But mkvirtualenv is missing. I tried to search on my machine but I couldn't find it. I don't know how to solve it. Do you have any idea? 回答1: mkvirtualenv is a bash script so you need to run bash shell to make use of it. mkvirtualenv is a bash function in the mkvirtualenv_bashrc script You will need to run this from cygwin under Windows. (You can call a native python from this and not need a cygwin python) 回答2:

ERROR: virtualenvwrapper could not find virtualenv in your path

这一生的挚爱 提交于 2019-12-03 01:02:23
I'm trying to create a virtualenv with virtualenvwrapper , but when I use mkvirtualenv I get the following : ERROR: virtualenvwrapper could not find virtualenv in your path I assumed it was a PYTHONPATH problem. But if I do a pip show virtualenv I get the following : --- Metadata-Version: 2.0 Name: virtualenv Version: 13.1.0 Summary: Virtual Python Environment builder Home-page: https://virtualenv.pypa.io/ Author: Jannis Leidel, Carl Meyer and Brian Rosner Author-email: python-virtualenv@groups.google.com License: MIT Location: /Volumes/Data/nfs/zfs-student-3/users/2013_paris/vmonteco/Library

Installed virtualenv and virtualenvwrapper: Python says no module named virtualenvwrapper

好久不见. 提交于 2019-12-03 00:47:25
问题 Lots of other threads about similar issues, but none that I could find where quite the same case as mine. So, here goes: Things I did: Ran: sudo easy_install pip Ran: sudo pip install virtualenv Ran: sudo pip install virtualenvwrapper Current State: .bash_profile export PATH=/usr/local/bin:$PATH export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache export WORKON_HOME=$HOME/.virtualenvs export PIP_VIRTUALENV_BASE=$WORKON_HOME export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python Running mkvirtualenv test