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.

Can pipenv find Pythons on Windows?

See original GitHub issue

Using 7.2.1 and this Pipfile:

[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true

[requires]

python_version = "3.6"

[packages]

testpackage = "*"

Installation with a full Python path works:

$ pipenv install --python=C:\\Python36\\python.exe
Creating a virtualenv for this project…
Using C:\Python36\python.exe to create virtualenv…
Running virtualenv with interpreter C:\Python36\python.exe
Using base prefix 'C:\\Python36'
New python executable in C:\projects\template-python-demo\.venv\Scripts\python.exe
Installing setuptools, pip, wheel...done.

But pipenv is unable to locate Python otherwise despite it being installed in the normal location (on AppVeyor):

$ pipenv install
Warning: Python 3.6 was not found on your system…
You can specify specific versions of Python with:
  $ pipenv --python path\to\python

Is pipenv able to locate Pythons on Windows? Having this feature work would mean that build scripts no longer need to workaround the Windows case and can get rid of hardcoded paths. 🎉

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jacebrowningcommented, Sep 18, 2017

I can confirm that pipenv==7.2.8 is finding Python correctly. Thanks!

1reaction
kennethreitzcommented, Sep 17, 2017

it does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use Python Pipenv in Mac and Windows - Thinkdiff
In this post we will discuss how to install and use pipenv in mac and windows.
Read more >
How To Install pipenv Tool on Windows - Python Tutorial
Before installing the pipenv tool, you need to have Python and pip installed on your computer. First, open the Command Prompt or Windows...
Read more >
How can I know which python a pipenv venv is using?
@Overdrivr yes but pipenv is installed in the scripts folder of the original python.exe you just have to navigate the python installation. – ......
Read more >
Configure a Pipenv environment | PyCharm Documentation
Pipenv is a tool that provides all necessary means to create a virtual environment for your Python project. It automatically manages project packages ......
Read more >
Pipenv & Virtual Environments
On Windows you can find the user base binary directory by running py -m site --user-site and replacing site-packages with Scripts . For...
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