I am following along the Data Analyst path and have arrived at the video regarding virtual environments. I have no problems with the video and have managed to create two separate virtual environments. The problem is that when I run the shell command and try and check which versions of each module are installed, they don’t seem to match the build versions that are in my Pipfiles.
I have copied my code below so that you can see what I have done.
C:/…/project1> pipenv shell
Launching subshell in virtual environment…
Copyright (c) Microsoft Corporation.
Type ‘help’ to get help.
Loading personal and system profiles took 639ms.
(base) PS C:…\project1> python3
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
Below is the Pipfile for project1:
url = “https://pypi.org/simple”
verify_ssl = true
name = “pypi”
numpy = “*”
requests = “==2.18.1”
python_version = “3.9”
As you can see, my Pipfile has requests set to version 2.18.1 but the version my pipenv loads for this project is 2.25.1. I don’t understand what I’ve done wrong…
Thanks in advance!