virtualenvwrapper

No module named 'virtualenvwrapper'

百般思念 提交于 2019-12-04 08:03:17
问题 I am working to set up a Django project on Amazon EC2 with an Ubuntu 14.04 LTS instance. I want to write my code using Python 3. I've been advised that the best way to do this is to use virtualenvwrapper . I've installed virtualenvwrapper successfully and put export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3.4 export PROJECT_HOME=$HOME/Devel source /usr/local/bin/virtualenvwrapper.sh into my .bashrc file. Now I see: /usr/bin/python3.4: Error while finding

workon command doesn't work in Windows PowerShell to activate virtualenv

旧街凉风 提交于 2019-12-04 07:52:51
I have installed virtualenvwrapper-win and when I try this command workon <envname> In CMD it works, but not in Windows PowerShell. In Windows PowerShell I have to do Scripts\activate.ps1 and then I get the envname before the prompt. Can you please let me know how can I make workon command working in PowerShell? workon is a batch script. If you run it from PowerShell it's launched in a new CMD child process, doing its thing there, then exit and return to the PowerShell prompt. Since child processes can't modify their parent you lose all modifications made by workon.bat when you return to

Wrong python packages path for opencv cmake installation

ぐ巨炮叔叔 提交于 2019-12-04 07:49:32
I've been trying to follow the opencv installation steps from pyimagesearch.com with virtualenv. Everything works fine except for the packages path: it should be /Users/JLee/Envs/cv/lib/python2.7/site-packages but it's configured as lib/python2.7/site-packages In Python, import cv2 works well in the global setting but doesn't work in the 'cv' virtual environment. While following the steps from the site, I first proceeded without installing virtualenv, then realized I haven't installed it so I installed it later and followed the steps again. Could this be a problem? Python 2: -- Interpreter:

Can Atom work with Python virtualenvwrapper

戏子无情 提交于 2019-12-04 06:28:30
I want to start a Flask app. I installed virtualenvwrapper to manage the packages but I can't let Atom know that the current project should use the virtualenv's python binary. from flask import Flask, render_template Using Atom's script runner, I get an "ImportError: No module named flask". I don't want the hassle of having to change to a terminal to run the app Have you tried the virtualenv package for Atom? Jacques In Linux: Start your virtual environment python. Launch atom from your python virtual environment. (EVP) abc $ atom That's all. I am the creator of a new package that adds support

How to definitely install virtualenvwrapper with Python3.5 on Mac OS Sierra?

三世轮回 提交于 2019-12-04 06:23:00
Well, looking around here there are tons of questions about how to correctly installing virtualenvwrapper on Mac. I really tried all of them but for no avail. I've noticed the previous questions don't have the configuration like my computer, so here it is: Mac OS Sierra 10.12 Python3.5.2 installed from python.org installer for Mac OS This installation puts Python3.5.2 in this path: /Library/Frameworks/Python.framework/Versions/3.5/bin/python3 I've run python3 get-pip.py command to install pip correctly, as I think sudo pip3 virtualenvwrapper to be sure all settings will be done as they should

Why does virtualenv inherit $PYTHONPATH from my shell?

两盒软妹~` 提交于 2019-12-04 05:42:26
So I'm migrating all my tools from python2 to python3.4 on an Ubuntu 14.04 machine. So far I've done the following: aliased python to python3 in my zshrc for just my user installed pip3 on the system itself (but I'll just be using virtualenvs for everything anyway so I won't really use it) changed my virtualenvwrapper "make" alias to mkvirtualenv --python=/usr/bin/python3 ('workon' is invoked below as 'v') Now curiously, and you can clearly see it below, running python3 from a virtualenv activated environment still inherits my $PYTHONPATH which is still setup for all my python2 paths. This

Installing virtualenv virtualenvwrapper with pip on osx 10.11.1

∥☆過路亽.° 提交于 2019-12-04 03:43:09
问题 Objective Install virtualenv virtualenvwrapper Background I am trying to create a sample flask app by following this tutorial https://realpython.com/blog/python/flask-by-example-part-1-project-setup/ But I am running into constant issues since I am setting up Python and related technologies on this new Mac running on 10.11.1 I am stuck at the command where I enter this $ mkvirtualenv --python=/usr/local/bin/python3 wordcounts I later realized that I did not have python 3. But still i have the

virtualenvwrapper seemingly ignoring VIRTUALENVWRAPPER_PYTHON

假如想象 提交于 2019-12-04 02:31:52
问题 I am python / virtualenv n00b, and tried to follow the instructions for installing virtualenv / virtualenvwrapper.sh. I installed both virtualenv and virtualenvwrapper.sh via: pip install virtualenv pip install virtualenvwrapper I have python3.5 and python2.7 installed on my system (Mac OS X El Capitan 10.11.4) When I search for python, python3, virtualenv and virtualenvwrapper.sh via bash I get the following: which python ==> /usr/local/bin/python which python3 ==> /usr/local/bin/python3

Terminal: Where is the shell start-up file?

为君一笑 提交于 2019-12-03 18:26:09
问题 I'm following a tutorial called Starting a Django 1.4 Project the Right Way, which gives directions on how to use virtualenv and virtualenvwrapper, among other things. There's a section that reads: If you're using pip to install packages (and I can't see why you wouldn't), you can get both virtualenv and virtualenvwrapper by simply installing the latter. $ pip install virtualenvwrapper After it's installed, add the following lines to your shell's start-up file (.zshrc, .bashrc, .profile, etc)

Install virtualenvwrapper for Python 2.7 and 3.6 simultaneously

霸气de小男生 提交于 2019-12-03 16:26:23
How does one install virtualenvwrapper for both Python 2.7 and 3.6 versions? My default Python environment is Python 3.6 and as such virtualenvwrapper is installed for Python 3.6 and not 2.7 . I'm using macOS Sierra 10.12.6 . You need only install virtualenvwrapper once . See the warning about installing on your base Python installation. Using Homebrew package manager install python2 and python3 . Making a virtual environment is a matter of passing a flag. # make py3 mkvirtualenv py3 --python=python3 # make py2 mkvirtualenv py2 --python=python2 来源: https://stackoverflow.com/questions/45917859