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.

non-global version taken for --three

See original GitHub issue

Non-global version of python used to create virtual environment

eshant@EMacBookPro:~/Dev/test|⇒  pyenv which python
/Users/eshant/.pyenv/versions/3.6.4/bin/python

eshant@EMacBookPro:~/Dev/test|⇒  pipenv --three
Creating a virtualenv for this project…
Using /Users/eshant/.pyenv/versions/anaconda3-5.0.1/bin/python3 to create virtualenv…
⠋^Environment creation aborted.

Describe your environment
  1. OS Type: macOS 10.13
  2. Python version: $ python -V: Python 3.6.4
  3. Pipenv version: $ pipenv --version: pipenv, version 10.1.0
Expected result

pipenv should have used /Users/eshant/.pyenv/versions/3.6.4/bin/python for creating venv

Actual result

using anaconda’s python

Steps to replicate
brew install pyenv
pyenv install anaconda3-5.0.1
pyenv install 3.6.4
pyenv global 3.6.4
pyenv rehash
eval "$(pyenv init -)"
pip/pipsi install pipenv
mkdir test && cd test
pipenv --three

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethreitzcommented, Feb 24, 2018

if you want a specific python, specify a specific python with --python

0reactions
uranusjrcommented, Feb 25, 2018

Pipenv does not have any knowledge about your shims. It simply uses the Python you install it on if you don’t specify any. What you saw is simply due to Pipenv happening to be installed on the same Python you set in pyenv.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple versions of the same dependency in Maven
If I declare dependencies as shown in the first snippet, only the last one will take effect. Is there any way to achieve...
Read more >
Overriding Dependency Versions and Using Version Ranges ...
Get step-by-step guidance on managing dependencies in Maven: declare dependencies, overriding dependency versions, and using version ranges.
Read more >
PEP 440 – Version Identification and Dependency Specification
Local version identifiers SHOULD be used by downstream projects when releasing a version that is API compatible with the version of the upstream...
Read more >
Documentation: 15: 19.6. Upgrading a PostgreSQL Cluster
This section discusses how to upgrade your database data from one PostgreSQL release to a newer one. Current PostgreSQL version numbers consist of...
Read more >
What is a centralized version control system - GitLab
Centralized source control systems, such as CVS, Perforce, and SVN, require users to pull the latest version from the server to download a...
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