Set python version when creating virtualenv using pipenv

后端 未结 4 1888
故里飘歌
故里飘歌 2020-12-25 13:10

Using a Raspberry Pi using Debian 4.14.34-v7+, I am trying to get pipenv set up with Python 3.6.5 as the default version of Python. I first install Python 3.6 b

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-25 13:29

    If you want to create a virtual environment for your project the answers above might not work for you. For instance, if you have multiple versions of python installed and you had to rename the executables like I had to in the below example, OR for the same project you might want to create virtual environments that use different python versions.

    When creating virtual environments for your projects, you can more specific and specify the path of the python executable.

    Remember to run the below command relative to the project folder.

    pipenv install --python 'C:\Python373\python373.exe'
    

提交回复
热议问题