Set python version when creating virtualenv using pipenv

后端 未结 4 1887
故里飘歌
故里飘歌 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:33

    "Edit the Pipfile" is the right way to go if you want to change the Python version of an existing environment.

    If you want to create a new environment using Python 3.6, you can run

    pipenv install --python 3.6
    

    rather than

    pipenv install --three
    

    and that should do the trick.

    Just be certain to delete the old Pipfile(s) if you create the new environment or else the commands will fail.

提交回复
热议问题