Can't install torch on linux box using pip - python

As the title states I am trying to install torch on linux using pip.
I run the command pip install torch==0.3.1
And I get the following output:
Collecting torch==0.3.1
Could not find a version that satisfies the requirement torch==0.3.1 (from versions: 0.1.2, 0.1.2.post1)
No matching distribution found for torch==0.3.1
Any ideas what the issue might be?

Try update pip itself, using
pip install --upgrade pip
then,
pip install torch==0.3.1

Try to do like this:
sudo apt-get update
then,
pip install torch==0.3.1

Related

python pip install "mkl-fft" could not install

I tried "pip install mkl-fft"
but could not finish.
ERROR: Could not find a version that satisfies the requirement mkl-fft (from -r requirements.txt (line 11)) (from versions: none)
ERROR: No matching distribution found for mkl-fft (from -r requirements.txt (line 11))
my env is
conda create -n myenv1 python=3.5
python -m pip install --upgrade pip
now pip ver is "20.1.1"
Further, I tried python 3.7.
I can`t install too.
do you have any Idea?
thank you.
It seems you're not the only one that's seeing this issue. From the project's github page, they actually direct to use a conda install -c intel mkl_fft.
Further it looks like there are multiple issues open for pip install problems. Here's one, and another. I would recommend trying the conda install first.

How to Update/Install python

I want to install pip on my windows but I get an error saying
ERROR: Could not find a version that satisfies the requirement pip
(from versions: none)
ERROR: No matching distribution found for pip
First check pip version by using the following command then upgrade
pip --version
pip install --upgrade pip
this will upgrade pip version

Pip has 2 versions, what should I do?

So i really don't know what to do. I am confused. I am also using a virtual environment named PyCharm. There are many issues with pip there but I haven't seen anything as weird as this.
cmd output:
C:\Users\Artur\PycharmProjects\first\venv\Scripts>pip install time
Collecting time
Could not find a version that satisfies the requirement time (from versions: )
No matching distribution found for time
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\Artur\PycharmProjects\first\venv\Scripts>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\artur\pycharmprojects\first\venv\lib\site-packages (19.0.1)
C:\Users\Artur\PycharmProjects\first\venv\Scripts>pip install time
Collecting time
Could not find a version that satisfies the requirement time (from versions: )
No matching distribution found for time
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
To resolving your outdated pip in PyCharm by running this in your PyCharm terminal:
python -m pip install -U --force-reinstall pip
This will fix the warning you are receiving...You are using pip version 10.0.1, however version 19.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Unable to install imbalanced-learn

I am trying to install the imbalanced-learn package in Python3 with the following command: pip install - U imbalanced-learn. I get this error:
Could not find a version that satisfies the requirement imbalanced-learn (from versions: )
No matching distribution found for imbalanced-learn
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
However, when I try upgrading using python -m pip install --upgrade pip I get this:
Requirement already up-to-date: pip in c:\programdata\anaconda3\lib\site-packages (10.0.1)
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Can anyone tell me what's going on?
I had also struggled with installing it but it worked for me with:
conda install imbalanced-learn
Trying doing a pip install in your conda environment with pip install imbalanced-learn. If that doesn't work then I'll recommend you revert back to v0.3 with conda install -c glemaitre imbalanced-learn

GoogleScraper Installation error - setuptools must be installed

I have virtualenv-13.1.2 set up with python 3.4 (global python is python-2.7) in ubuntu 14.04. When I try to install GoogleScraper using coammandpip install GoogleScraper it gives an error
setuptools must be installed to install from a source distribution
If I do pip install setuptools
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./env/lib/python3.4/site-packages
If I do pip install setuptools --upgrade
Requirement already up-to-date: setuptools in ./env/lib/python3.4/site-packages
How can I successfully install GoogleScraper?
I was missing python3-dev tools. I did sudo apt-get install python3-dev and it worked like a charm.
After upgrading the python3.4 package in Ubuntu 14.04 I get the same error.
A quick solution is to delete and re-create the virtualenv.

Categories