question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipenv using wrong python with pyenv

See original GitHub issue

pipenv is using python 3.5.3 instead of 3.6.2 for some reason

$ pipenv --version
pipenv, version 8.0.7
$ python --version
Python 3.6.2
$ which python
/Users/johria/.pyenv/shims/python
$ pipenv install --dev
Creating a virtualenv for this project…
⠋Using base prefix '/Users/johria/.pyenv/versions/3.5.3'
New python executable in /Users/johria/.local/share/virtualenvs/context-generator-d3x1ENAX/bin/python3.5
Also creating executable in /Users/johria/.local/share/virtualenvs/context-generator-d3x1ENAX/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /Users/johria/.local/share/virtualenvs/context-generator-d3x1ENAX
Installing dependencies from Pipfile.lock…
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 25/25 — 00:00:44
To activate this project's virtualenv, run the following:
 $ pipenv shell
$ pyenv versions
  system
  2.7.13
  3.5.3
* 3.6.2 (set by /Users/johria/Development/heliograf/apps/context-generator/.python-version)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:39 (25 by maintainers)

github_iconTop GitHub Comments

47reactions
AlJohricommented, Sep 27, 2017
$ pipenv --rm
$ pipenv install
$ Creating a virtualenv for this project…
Using /Users/johria/.pyenv/versions/3.6.2/bin/python3.6m to create virtualenv…

fixed! thank you all! 🎉

40reactions
kennethreitzcommented, Sep 27, 2017

you’ll have to do a pipenv --rm to start over.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is pipenv telling me the wrong version of python?
When you did pipenv install , it's NOT going to use that same virtual env directory, because as described above, it auto-generates the...
Read more >
How to Manage your Python Projects with Pipenv and Pyenv
Set/change a Python version locally for a project. ... If you use Pyenv, the pipenv install command will use the global Python version...
Read more >
How to install pyenv+pipenv in ubuntu and use multiple ...
How to install pyenv+pipenv in ubuntu and use multiple versions of python and ... <python-version> command here, because using local may lead to...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
Pipenv does not respect pyenv's global and local Python versions¶. Pipenv by default uses the Python it is installed against to create the...
Read more >
Python Environment 101 - Towards Data Science
pipenv creates isolated pip environments whereas pyenv+virtualenv creates virtualenvs that multiple projects can use. pyenv. If you are working ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found