virtualenvwrapper

problems with python and virtualenvwrapper after updating: No module named virtualenvwrapper

风流意气都作罢 提交于 2019-11-27 00:44:15
问题 I run python 2.7.6 with virtualenv, virtualenvwrapper under ubuntu 14.04. now i have installed python 2.7.9 from source. the new python interpreter is now located under /usr/local/bin but it seems the old interpreter is also located under /usr/bin . if I run python shell it shows up python2.7.9. but if I use mkvirtualenv venv I am getting the following message. New python executable in venv/bin/python Installing setuptools, pip...done. Blockquote /usr/local/bin/python: No module named

List all virtualenv

浪子不回头ぞ 提交于 2019-11-26 23:57:29
问题 In virtualenvwrapper, is there a simple way to list all virtualenv on my machine? (like what yolk -l does to list all python packages in the current virtual environment?) CLARIFICATION: "ls -la" in my env directory does not count. I am looking for a virtualenv or virtualenvwrapper specific command. 回答1: You can use the lsvirtualenv , in which you have two options "long" or "brief": "long" option is the default one, it searches for any hook you may have around this command and executes it,

What is the relationship between virtualenv and pyenv?

眉间皱痕 提交于 2019-11-26 23:22:40
I recently learned how to use virtualenv and virtualenvwrapper in my workflow but I've seen pyenv mentioned in a few guides but I can't seem to get an understanding of what pyenv is and how it is different/similar to virtualenv. Is pyenv a better/newer replacement for virtualenv or a complimentary tool? If the latter what does it do differently and how do the two (and virtualenvwrapper if applicable) work together? Steve Barnes Pyenv and virtualenv are very different tools that work in different ways to do different things: Pyenv is a bash extension - will not work on Windows - that intercepts

virtualenvwrapper commands aren't working

前提是你 提交于 2019-11-26 22:30:38
问题 tow-81-235:Projects pessimisticoptimism$ mkvirtualenv development -bash: mkvirtualenv: command not found tow-81-235:Projects pessimisticoptimism$ sudo pip install virtualenvwrapper Password: Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /Library/Python/2.7/site-packages Requirement already satisfied (use --upgrade to upgrade): virtualenv in /Library/Python/2.7/site-packages (from virtualenvwrapper) Requirement already satisfied (use --upgrade to upgrade):

Sublime text3 and virtualenvs

自作多情 提交于 2019-11-26 21:29:43
I'm totally new with sublime3, but i couldn't find anything helpful for my problem... I've differents virtualenvs (made with virtualenwrapper) and I'd like to be able to specify which venv to use with each project Since I'm using SublimeREPL plugin to have custom builds, how can i specify which python installation to build my project with? for example, when i work on project A i want to run scripts with venvA's python, and when i work on project B i want to run things with venvB (using a different build script) sorry my terrible english... Hopefully this is along the lines you are imagining. I

Can't install virtualenvwrapper on OSX 10.11 El Capitan

情到浓时终转凉″ 提交于 2019-11-26 19:40:02
问题 I recently wiped my Mac and reinstalled OSX El Capitan public beta 3. I installed pip with sudo easy_install pip and installed virtualenv with sudo pip install virtualenv and did not have any problems. Now, when I try to sudo pip install virtualenvwrapper , I get the following: Users-Air:~ User$ sudo pip install virtualenvwrapper The directory '/Users/User/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the

Why can't I get `pip install lxml` to work within a virtualenv?

和自甴很熟 提交于 2019-11-26 19:04:47
问题 Note: I'm using virtualenvwrapper. Before activating the virtual environment: $ pip install lxml Requirement already satisfied (use --upgrade to upgrade): lxml in /usr/lib/python2.7/dist-packages Cleaning up... After activating the virtual environment: (test-env)$ pip install lxml force/build/lxml/src/lxml/includes/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 ------------------------------

Where should virtualenvs be created?

蓝咒 提交于 2019-11-26 18:46:46
问题 I'm confused as to where I should put my virtualenvs. With my first django project, I created the project with the command django-admin.py startproject djangoproject I then cd'd into the djangoproject directory and ran the command virtualenv env which created the virtual environment directory at the same level as the inner djangoproject directory. Is this the wrong place in which to create the virtualenv for this particular project? I'm getting the impression that most people keep all their

How to use MySQLdb with Python and Django in OSX 10.6?

故事扮演 提交于 2019-11-26 18:04:25
This is a much discussed issue for OSX 10.6 users, but I haven't been able to find a solution that works. Here's my setup: Python 2.6.1 64bit Django 1.2.1 MySQL 5.1.47 osx10.6 64bit I create a virtualenvwrapper with --no-site-packages, then installed Django. When I activate the virtualenv and run python manage.py syncdb, I get this error: Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/Users/joerobinson/.virtualenvs/dj_tut/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute()

Python Virtualenv - No module named virtualenvwrapper.hook_loader

試著忘記壹切 提交于 2019-11-26 15:14:00
问题 I'm running Mac OS 10.6.8. and wanted to install in addition to python 2.6 also python 2.7 and use python 2.7 in a new virtualenv. I executed the following steps: I downloaded python 2.7 and installed it: http://www.python.org/ftp/python/2.7.3/python-2.7.3-macosx10.6.dmg Then I run the command to setup a new virtualenv using python2.7: mkvirtualenv --python=python2.7 mynewenv My .bash_profile looks like the following: # needed for virtualenvwrapper export WORKON_HOME=$HOME/.virtualenvs export