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.

Question: pipenv and conda

See original GitHub issue

Thanks for your work on pipenv!

I have some question as I’m struggling to understand if I can use pipenv in my workflow. I am a conda user and I am pretty familiar with conda environments but I have rarely used virtualenvs. Can pipenv be used together within a conda/anaconda installation?

I tried to install pipenv but I get an error about virtualenvs:

⠋Using base prefix '/Users/anto/miniconda3'
New python executable in /Users/anto/.local/share/virtualenvs/phconvert-LTUxcv-Y/bin/python
ERROR: The executable /Users/anto/.local/share/virtualenvs/phconvert-LTUxcv-Y/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Users/anto/.local/share/virtualenvs' (should be '/Users/anto/.local/share/virtualenvs/phconvert-LTUxcv-Y')
ERROR: virtualenv is not compatible with this system or executable

EDIT: typos

Issue Analytics

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

github_iconTop GitHub Comments

25reactions
kennethreitzcommented, Sep 26, 2017

use pipenv outside of conda, but you can use it to create virtualenvs with an anaconda python.

For example:

$ pipenv --python path/to/anaconda/bin/python
1reaction
kennethreitzcommented, Sep 26, 2017

yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv with Conda? - python - Stack Overflow
I'm trying your commands in git-bash . in the pipenv-test conda env do you need to run pip install pipenv before '$ pipenv...
Read more >
Pipenv vs Conda (for Data Scientists) | by Dr Soumaya Mauthoor
This article compares pipenv and conda as of Jan 2021 using the following set of criteria, some of which are more relevant to...
Read more >
Advanced Usage of Pipenv — pipenv 11.9.1 documentation
To use Pipenv with a Conda–provided Python, you simply provide the path to the Python binary: $ pipenv install --python=/path/to/anaconda/python.
Read more >
Pipenv vs virtualenv vs conda environment | by Krishna Regmi
Python has three popular ways of creating virtual environment at the moment. In this post I want to talk about how to use...
Read more >
Conda environments
Pipenv and Poetry are based around Python's built-in venv library, whereas conda has its own notion of virtual environments that is lower-level (Python...
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