简体   繁体   中英

How to install python package on Ubuntu 10.04

I would like to install some python packages on Ubuntu 10.04.

I have problem with openssl version and there is no way to upgrade it on this Ubuntu. I have also tried downloading modules manually and running python3 setup.py install but it says that I don't have setuptools, which is also impossible to install on this Ubuntu.

Is there any alternative to pythonhosted.org that allows older openssl versions and how to set it up

  1. I recommend you to Install a newer version of ubuntu that is supported. 1.1 Install all dependencies and install python via Terminal.

    apt update && apt upgrade -y && apt -f install -y && apt install python3

(This will most likely to be the solution)

  1. This will execute it if you want to run a python file.

    ./package-name.py

optionally use make install newer versions work well with this command too in the directory of the downloaded module.

  1. For installing pythonmoduels

    pip (or pip3) --user install modulename

(pip or pip3 depends on which python you have installed.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM