opknt.blogg.se

Linux install python 3.5 ubuntu
Linux install python 3.5 ubuntu







linux install python 3.5 ubuntu

These have helped me to install all the libraries that I need. Sometimes, for reasons that I don`t know, during the package installation process, Linux blocks access to the Python so try these as well: sudo apt install python-librarynameĪnd for Python 3.5 sudo apt install python3-libraryname Now assuming you just have an IDE that is connected to Ubuntu`s default Python versions, you can use the terminal to install your packages:įor python 2.7 use pip install librarynameįor python 3.5 use pip3 install libraryname This is important to pay attention to because once you are trying to install a package/library, you need to know which Python it is being installed to. In other words you do not have a distribution like Anaconda or Enthought which install their own Python versions. Let`s say you only installed Spyder from Ubuntu app store or installed Jupyter. Now based on the IDE you are using there are several ways to do this. Ubuntu 15 and older come with Python 2.7 and Ubuntu 16.04 comes with both Python 2.7 and 3.5. It depends on the Ubuntu version and the IDE you are using. The last command is just for safety there might be a Python 2 PIP installed as /usr/bin/pip. It can still be installed with sudo apt-get install python3-setuptoolsĪfter this, pip is the Python 3 version of PIP, instead of pip3. PIP has some limitations compared to APT, but it does always fetch the latest version of a package instead of the one that the Ubuntu packagers have chosen to ship.ĮDIT: to repeat what I said in the comment, pip3 isn't in Ubuntu 12.04 yet.

linux install python 3.5 ubuntu

To fetch the PyGame package from PyPI and install it for Python 3. To install it, then sudo pip3 install pygame

linux install python 3.5 ubuntu

The other option is to use PIP, the Python package manager: sudo apt-get install python3-pip This only works for packages that are shipped by Ubuntu, unless you change the APT configuration, and in particular there seems to be no PyGame package for Python 3. To use the Debian/Ubuntu package manager APT. There are two nice ways to install Python packages on Ubuntu (and similar Linux systems): sudo apt-get install python-pygame









Linux install python 3.5 ubuntu