Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to update python version? #1

Open
smyerslens opened this issue May 16, 2017 · 1 comment
Open

need to update python version? #1

smyerslens opened this issue May 16, 2017 · 1 comment

Comments

@smyerslens
Copy link
Contributor

When running this command: mkvirtualenv --python=which python3 school-zones
it returned:
New python executable in /Users/smyers/.virtualenvs/school-zones/bin/python3.5
Not overwriting existing python script /Users/smyers/.virtualenvs/school-zones/bin/python (you must use /Users/smyers/.virtualenvs/school-zones/bin/python3.5)

@ThomasThoren
Copy link
Member

Did you already have a virtual environment called "school-zones"? It seems like it might be trying to overwrite an existing virtualenv or changing the Python version for an existing virtualenv.

You could try removing the virtualenv and making it again. Before doing this, make sure you save your latest pip dependencies. These are stored in the requirements.txt file. On the command line, navigate to this project's directory and run this:

pip freeze > requirements.txt

Then remove this virtualenv:

rmvirtualenv school-zones

Now, recreate the virtualenv:

mkvirtualenv --python=`which python3` school-zones

Finally, you need to install your pip packages again:

pip install -r requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants