Set python version when creating virtualenv using pipenv

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

    I suggest you two approaches:

    1. pip install --python 3.7

    (This requires either asdf or pyenv installed. If you don't have them installed, read on!)

    1. The manual method.(Applicable for Linux)(For win refer @Ryner's answer!)
    • Download the python gzip from python.org and extract it to a folder, cd to it.

    • Hit the following

       ./configure
      
       make 
      
       sudo make install
      
    • Now you have python version locally installed, all you gotta do is step one.

    pipenv install --python

    Note: If for any case, if you want to uninstall,go to the directory where you executed make, and simply hit make uninstall

    Hope that helps! Happy coding!

提交回复
热议问题