You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[*]The following has been tested and verified using Ubuntu 20.04
When attempting to install pyvmrun==0.2.1 with the following command: python3 -m pip install -r requirements.txt
I receive the following error: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
I found this might happen if you built Python from source, and libssl-dev wasn't installed on your machine.
You can check whether you have libssl-dev installed by looking at the output of: dpkg -s libssl-dev
If not installed, you can install with the following command: apt-get install libssl-dev
From here you must rebuild Python from source.
Building Python from source requires various third-party and system libraries.
Open the /etc/apt/sources.list file. $ sudo nano /etc/apt/sources.list
To enable the source packages, add their location, including URL, distribution name, and component name. deb-src http://archive.ubuntu.com/ubuntu/ focal main
Save the file and exit.
Update the packages index. $ sudo apt update
Install the required system libraries for Python. $ sudo apt -y build-dep python3
Install the third-party libraries for all optional modules.
Now download the source archive to the home directory.
$ cd ~ $ wget https://github.com/python/cpython/archive/refs/tags/v3.10.5.tar.gz
The latest stable version of Python at the moment is 3.10.5. But, of course, you can always visit python.org and fill in the command with the latest version.
Extract the archive.
$ tar xzf v3.10.5.tar.gz
Change the working directory to the source directory.
$ cd cpython-3.10.5
Configure the source.
$ ./configure --enable-optimizations
Build the source (this may take a few minutes).
$ make -s
Using make altinstall instead of make install avoids overwriting a previous Python install with Python 3.10.5. $ sudo make altinstall
If overwriting isn't a problem or Python is not currently on you machine, go ahead and run: $ sudo make install
Python 3.10.5 also comes with pip, the package installer for Python. $ python3.10.5 -m pip -V
The output should be like this. pip 21.2.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
If you ran $ sudo make altinstall and ensure that all existing programs are compatible with Python 3.10.5 from your previous Python install, you can make it the default version so $ python3 will kick off the program instead of having to type $ python3.10.5 by using the following command: $ sudo ln -fs /usr/local/bin/python3.9 /usr/bin/python3
The text was updated successfully, but these errors were encountered:
[*]The following has been tested and verified using Ubuntu 20.04
When attempting to install pyvmrun==0.2.1 with the following command:
python3 -m pip install -r requirements.txt
I receive the following error:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
I found this might happen if you built Python from source, and
libssl-dev
wasn't installed on your machine.You can check whether you have libssl-dev installed by looking at the output of:
dpkg -s libssl-dev
If not installed, you can install with the following command:
apt-get install libssl-dev
From here you must rebuild Python from source.
Building Python from source requires various third-party and system libraries.
Open the
/etc/apt/sources.list
file.$ sudo nano /etc/apt/sources.list
To enable the source packages, add their location, including URL, distribution name, and component name.
deb-src http://archive.ubuntu.com/ubuntu/ focal main
Save the file and exit.
Update the packages index.
$ sudo apt update
Install the required system libraries for Python.
$ sudo apt -y build-dep python3
Install the third-party libraries for all optional modules.
Now download the source archive to the home directory.
$ cd ~
$ wget https://github.com/python/cpython/archive/refs/tags/v3.10.5.tar.gz
The latest stable version of Python at the moment is 3.10.5. But, of course, you can always visit python.org and fill in the command with the latest version.
Extract the archive.
$ tar xzf v3.10.5.tar.gz
Change the working directory to the source directory.
$ cd cpython-3.10.5
Configure the source.
$ ./configure --enable-optimizations
Build the source (this may take a few minutes).
$ make -s
Using make
altinstall
instead of makeinstall
avoids overwriting a previous Python install with Python 3.10.5.$ sudo make altinstall
If overwriting isn't a problem or Python is not currently on you machine, go ahead and run:
$ sudo make install
Python 3.10.5 also comes with pip, the package installer for Python.
$ python3.10.5 -m pip -V
The output should be like this.
pip 21.2.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
If you ran
$ sudo make altinstall
and ensure that all existing programs are compatible with Python 3.10.5 from your previous Python install, you can make it the default version so$ python3
will kick off the program instead of having to type$ python3.10.5
by using the following command:$ sudo ln -fs /usr/local/bin/python3.9 /usr/bin/python3
The text was updated successfully, but these errors were encountered: