virtualenvwrapper

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

北慕城南 提交于 2020-01-01 04:40:09
问题 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

Install GDAL in virtualenvwrapper environment

馋奶兔 提交于 2019-12-31 13:52:52
问题 I tried to install gdal (pip install gdal)in virtualenvwrapper environment but I got this error : error: command 'gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for gdal Failed to build gdal I tried also "pip install --no-install GDAL" but there is nooption --no-install what should I do !? 回答1: Yes, installing GDAL in a venv is a doozy. Conveniently, I just wrote up the documentation on how to do so for my advisor's lab! While I am not savvy

Install GDAL in virtualenvwrapper environment

混江龙づ霸主 提交于 2019-12-31 13:51:03
问题 I tried to install gdal (pip install gdal)in virtualenvwrapper environment but I got this error : error: command 'gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for gdal Failed to build gdal I tried also "pip install --no-install GDAL" but there is nooption --no-install what should I do !? 回答1: Yes, installing GDAL in a venv is a doozy. Conveniently, I just wrote up the documentation on how to do so for my advisor's lab! While I am not savvy

Create a virtualenv with both python2 and python3

霸气de小男生 提交于 2019-12-30 05:49:26
问题 I tried to use virtualenvwrapper to create a virtualenv with both python2 and python3 Per virtualenv with python2 and python3 via Homebrew I hoped this would work: (The name of the virtualenv is 'double') mkvirtualenv double -p `which python` mkvirtualenv double -p `which python3` It mentions that Not overwriting existing python script both/bin/python (you must use both/bin/python3.4) But it that does not seem to be true. Typing python python2.7 python3 and python3.4 all start the python3.4

How to check whether virtualenv was created with '--no-site-packages'?

。_饼干妹妹 提交于 2019-12-30 02:47:06
问题 Sometimes I get errors that I suspect are the result of my Django app using globally installed Python modules/Django apps instead of those within its virtualenv. Is there a way to check whether my app's virtualenv was created with '--no-site-packages' without having to delete it, then re-create it as follows? deactivate rmvirtualenv my_env mkvirtualenv my_env --no-site-packages workon my_env pip install -r requirements.txt Surely there must be a better way! Thanks. 回答1: There's a file in <env

/usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: No module named 'virtualenvwrapper')

跟風遠走 提交于 2019-12-29 18:19:12
问题 I'm trying to follow How To Serve Django Applications with uWSGI and Nginx on Ubuntu 14.04 and I'm failing at the very earlier stage, due to amount of output, I placed all related information into Pastebin.com - #1 paste tool since 2002!. the actual error: root@alexus:~# echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc root@alexus:~# source ~/.bashrc /usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: No module named

/usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: No module named 'virtualenvwrapper')

…衆ロ難τιáo~ 提交于 2019-12-29 18:18:39
问题 I'm trying to follow How To Serve Django Applications with uWSGI and Nginx on Ubuntu 14.04 and I'm failing at the very earlier stage, due to amount of output, I placed all related information into Pastebin.com - #1 paste tool since 2002!. the actual error: root@alexus:~# echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc root@alexus:~# source ~/.bashrc /usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: No module named

/usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: No module named 'virtualenvwrapper')

孤人 提交于 2019-12-29 18:18:31
问题 I'm trying to follow How To Serve Django Applications with uWSGI and Nginx on Ubuntu 14.04 and I'm failing at the very earlier stage, due to amount of output, I placed all related information into Pastebin.com - #1 paste tool since 2002!. the actual error: root@alexus:~# echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc root@alexus:~# source ~/.bashrc /usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: No module named

Virtualenvwrapper does not initialize after updating Python to 3.6

旧巷老猫 提交于 2019-12-24 07:57:43
问题 My OS (Arch Linux) recently updated Python from 3.5.2 to 3.6.0, now when running any terminal I get this message: /usr/bin/python: Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: 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 virtualenvwrapper has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin

How can I tell mkvirtualenv which version of Python I'd like to use?

扶醉桌前 提交于 2019-12-24 06:33:08
问题 I'm puzzled over the version of Python the gets installed when using mkvirtualenv . Outside of any virtualenv here's what I have. $ which python /opt/local/bin/python << MacPorts installed Python $ python -V Python 2.7.13 $ python -c "import ssl; print ssl.OPENSSL_VERSION" OpenSSL 1.0.2k 26 Jan 2017 OK so far. Now, make virtualenv... $ mkvirtualenv foo [normal stuff here] (foo) $ which python /Users/me/Workspace/venvs/foo/bin/python (foo)$ python -V Python 2.7.10 Why is this python 2.7.10?