Answers for "install specific version of python"

47

how to check python version

# To check your Python version in the command line use:
python --version

# To check your Python verson inside a script use:
import sys
print(sys.version)
Posted by: Guest on February-29-2020
16

pip install specific version

# To install a specific version of a package using pip:
pip install Package_name==version

# Example:
pip install MySQL_python==1.2.2
Posted by: Guest on March-16-2020
10

how to pip install a specific version

# At the time of writing this numpy is in version 1.19.x
# This statement below will install numpy version 1.18.1
python -m pip install numpy==1.18.1
Posted by: Guest on July-12-2020
1

how to install specific version of python with venv

#LAUNCH THE COMMAND WITH YOUR SPECIFIC DISTRIBUTION PATH INSTEAD OF THE ONTHEGO 'python'
#THEN CREATE YOUR ENV NORMAL
c:\>python\python3.8 -m venv myEnv1 c:\path\to\myenv
Posted by: Guest on July-23-2021

Code answers related to "install specific version of python"

Python Answers by Framework

Browse Popular Code Answers by Language