I would like to have two virtual environments, where one has a version of python 3.6 and the other has a version of python 3.7. This will allow me to hopefully complete my projects without conflicting needs when installing modules and packages. Tensorflow I believe can't be done in 3.7.
I have tried pipenv shell w/ 'pipenv install Django==3.0.2', github advice,
Some sites say to use a Python, pipenv shell, DJango combo but this appears to only create one version of a python3 virtual environment, and the previous existing virutalenv will be removed. Should I create a new Pipfile to prevent this, or are Pipfiles not designed for this configuration.
- Github discussion link:
https://github.com/pypa/pipenv/issues/1071
setup environments
pipenv --name 35 --python 3.5 install
pipenv --name 36 --python 3.6 install
# run commands
pipenv --name 35 run python
I tried to follow up with these advised coding procedures and I got ModuleNotFoundError: No module named 'apt_pkg'.
- Lastly I have considered pyenv, yet this appears to be tailored for mac users. I have a Windows 10 computer so I am not sure if this will work. I used "$pip install pyenv-win"
$ pip install pyenv-win
Defaulting to user installation because normal site-packages is not writeable
Collecting pyenv-win
Using cached pyenv_win-1.2.4-py3-none-any.whl (25 kB)
Installing collected packages: pyenv-win
Successfully installed pyenv-win-1.2.4
But am not able to create any virtual environments with it:
$ pyenv-win versions
ModuleNotFoundError: No module named 'apt_pkg'
Note: part 3 followed these guidelines
Any help is appreciated. I really would like to get this working.