"E: Package 'ipython' has no installation candidate" while trying to install torch
By Emma Payne •
I'm trying to install torch on Ubuntu 20.04.1 LTS
When I run
cd ~/torch; bash install-deps;it generates this error:
Package ipython is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ipython' has no installation candidateHow do I install ipython?
3 Answers
If you already have pip installed on your machine, ipython can be installed like this:
pip3 install ipythonIf pip is not installed, you’ll need to do this first:
sudo apt install -y python3-pipThat should give you what you need.
First solution(via apt): The newest ipython deb version download:
Then install it via apt:
sudo apt install /dir/to/ipython_5.8.0-1_all.debNOTE:
I think it's not the best solution, but it is worth a try.
Second solution via apt(easy):
sudo apt install python3-ipython Run:
sudo nano /etc/apt/sources.listAnd add these lines.
deb bionic main universe
deb bionic-security main universe
deb bionic-updates main universePress Ctrl+O to save the file. Press Ctrl+X to quit nano.
1