Problem: How to upgrade current Python3 to the latest version?
Environment:
Server is a Synology NAS Model DS216+, DSM 6.2.2-24922 Update 4. Client is a Win 10 PC using SSH to access server via command prompt.
Have Tried:
Use Synology's Package Center installed Python 3.5.1, but can not upgrade to higher version, so uninstalled it and rebooted server.
Followed Synology forum article and installed ipkg: https://community.synology.com/enu/forum/1/post/127148
Use ipkg to install Python 3.7.1: "ipkg update"; "ipkg install python3"
Then installed pip: “wget https://bootstrap.pypa.io/get-pip.py”; “python3.7 get-pip.py”
Created symbolic link to Python3: "ln -s python3.7 python3"
Now when I type "python3", the version shows: "Python 3.7.1 (default, Nov 15 2018, 22:12:17)"
But this is still not the latest version of python 3.8.2. How can I install 3.8.2 on the server?
You should try installing entware which is very similar to ipkg (sorry, i only have a french link https://www.skyminds.net/nas-synology-installer-entware-ipkg-applications/).
When installed, just run opkg install python3 and you will have python 3.8.3 on your DS216+ (I run python 3.8.3 on my DS918+).
Then, install pip with wget https://bootstrap.pypa.io/get-pip.py and python3.8 get-pip.py.
To use it, type python3.8
Good luck and have a great day !
Related
Am using ubuntu 20.04 LTS by default I have 3.8.2 as python version but when I issue sudo apt-get update its getting updating to 3.8.5 I need 3.8.2 as the version.How to uninstall 3.8.5 and install 3.8.2?
It might not directly answer your question, but it's an alternative solution. You could install something like pyenv which simplifies the process of handling different python versions. After installing it, pyenv install 3.8.2 && pyenv global 3.8.2 should do the trick.
I am using Azure to create an Ubuntu server 18.04. The python3 default version in this VM is 3.6.9. I tried to install python3-pip, then install Tensorflow version 1.15.0 by command: sudo pip3 install Tensorflow==1.15.0.
However I got this error: No matching distribution found for tensorflow==1.15.0
I really don't know how to fix it. On my Windows PC, I got the same error while using python3.7, then I change to use python3.6.5 and everythings is fine. So that I think maybe I should try to install python 3.6.5 on Ubuntu VM. But again, this time, I can't install correctly python 3.6.5 on my Ubuntu server.
Can you please help me to fix it. I am just a newbie and honestly, I am not really good with Ubuntu.
Thank you so much.
I had the same issue.
A simple upgrade of pip to the latest version by:
sudo -H pip3 install --upgrade pip
sudo -H pip2 install --upgrade pip
solved the problem for me. Checkout https://askubuntu.com/questions/712339/how-to-upgrade-pip-to-latest for details how to upgrade pip.
After checking it seems the pip3 version shipped with Ubuntu defaults to pip 9.0.1. However, this version seems to supports only up to Tensorflow 1.14.
I would also strongly suggest to use virtual environments like Anaconda in order not to mess up your system python.
E.g.: https://docs.anaconda.com/anaconda/install/linux/
These are the list of files for TensorFlow 1.15
This command would work:
pip3 install tensorflow==1.15.0
I do see the manylinux wheel file for Ubuntu.
What CPU model and pip version are you using?
Debugging:
pip3 -v install tensorflow==1.15.0 | grep Found | more
Can help you see which platform and tags pip3 is trying to find in wheel files.
In the past I also have seen issue with pip default version (9.0.1), make sure you are running a recent version (e.g. pip-20.0.2):
apt install python3-pip && pip3 install --upgrade pip
I would am currently using python version 3.6.0 on Ubuntu 18.04 and need to use python version >= 3.6.1 to use PySlice_Unpack.
I have tried installing using the following commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
The output from these commands is:
python3.6 is already the newest version (3.6.7-1~18.04).
So it seems like I already have python 3.6.7 installed. However when I run the commands python -V, python3 -V, or python3.6 -V the output is
Python 3.6.0 :: Continuum Analytics, Inc.
In /usr/bin/ I have config files for python2.7, python3.6, python3.6m, python3, and python3m. I've looked at the python3.6 and python3 config files and they both have VERSION="3.6". How can I switch to using python version 3.6.7 instead of 3.6.0?
If you need a different version of Python (or other versions of python packages than those included in the version of Ubuntu you are using), then you might want to try using VirtualEnv, like explained in this answer: https://stackoverflow.com/a/5507373/483566
I am struggling to make Python (Anaconda) work from last few days. I had tried installing pytorch few days back and it crashed in between. Hence forth, my Anaconda is giving errors while installing any packages. I have Windows 10, 64 bit user with Python 3.6.1. - Intel chipset.
I am unable to install any package - above is the issue.
I even tried uninstalling and installing Anaconda which is the only Python distribution I have on my machine.
Another error which I receive -
Any help in this matter would be of great great help!!
Upgrade pip as follows:
curl https://bootstrap.pypa.io/get-pip.py | python
Note: You may need to use sudo python above if not in a virtual environment.
(Note that upgrading pip using pip i.e pip install --upgrade pip will also not upgrade it correctly. pip won't work unless using TLS >= 1.2.)
For PyCharm (virtualenv) users:
Run virtual environment with shell. (replace "./venv/bin/activate" to your own path)
source ./venv/bin/activate
Run upgrade
curl https://bootstrap.pypa.io/get-pip.py | python
Restart your PyCharm instance, and check your Python interpreter in Preference.
I want to install python 3.5 in linux that has python 3.4
via virtualenv or any other mean.
since the system version is 3.4 ,I don't want to upgrade it so the system don't crash .
Using sudo apt-get install package python3 should install the latest version of Python, and remove the older one.