Package requirement 'torch===0.4.0+' is not found - python

I am trying to run the CORnet neural network. For this, I am using Windows, and running the code via Pycharm.
Normally the package manager of Pycharm does not give me any problems but for this it tells me 'Package requirement 'torch===0.4.0+' is not found'.
I have tried installing different versions of torch using pip install.
I have also tried downloading the torch-0.4.1-cp37-cp37m-win_amd64.whl file from the pytorch website but then the error message 'torch-0.4.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform' pops up.
Any help is welcome!

Related

Need help installing TensorFlow/Keras. And h5py and hdp5

I want to use keras in Jupyter. Running command "import tensorflow as tf" tells me that tensorflow cannot be found. "pip install tensorflow" says tensorflow cannot be found. From here i got a better command:
py -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
This worked better, because this time there was progess. But an error was encountered - failed to build wheel for h5py. HDF5 dependency could not be loaded. Trying to get h5py with pip gives exact same error: cant build wheel because hdf5 is missing.
This website does not seem to have anything useful for windows7.
Trying every installer from here had no effect. While claiming that h5py was "successfully installed", trying to install tensorflow proved the opposite.
And trying to install wheels from this website just returned the same error. HDF5 could not be found. Even thought I was trying to install hdf5.
This installation guide is about h5py. it does not work because i dont have hdf5.
So my question is. How do i get a working keras for jupyter? Where can i find an installer that actually installs what i want? What is the complete set of CMD commands that are guaranteed to work and result in a working Tensor flow?
i am using 64 bit windows7, my python is 3.7.2. This fetch quest of collecting tiny bits and pieces of the answer is driving me mad.

How to install Pillow 7.0.0 on Pycharm running Python 3.8?

I'm trying to use Django and displaying images from a Sql db, following this LinkedIn Learning tutorial.
In the process of running manage.py to run my django development server, I face an issue where I have to have pillow installed.
This process has so far proven tedious and here are the things I've tried:
Ran the "simple" python -m pip Pillow, python -m pip Pillow --upgrade in the PyCharm terminal, then get:
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
(Pycharm Ultimate, which I have): Running the WSL environment as provided in the release notes. This should to work as I have the required pre-reqs installed in WSL. However, my computer runs the dreaded "skeletons" process for quite a long time, and I don't see it ending anytime soon.
Attempting to install from the PyCharm GUI also fails in the same way as 1.
Attempting to install the following binaries from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow which is referenced in some other answers for this topic gives me this error when installing via pip install <wheel name here>:
Pillow-7.0.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
**pip3 doesn't work either. Mentioning although in my PyCharm virtualenv they both point to the same python interpreter. At first glance...
My main ask is - has anyone been able to install pillow 7.0.0 on Windows 10, for a PyCharm virtualenv? And, if so, how have you done it? So I can get back to learning! Thank you in advance!
EDIT: Updated steps taken in (1). Sorry about that

Tensorflow installation stuck at "Collecting tensorboard<1.14.0,>=1.13.0 (from tensorflow)"

I'm trying to install Tensorflow through pip in the Windows 10 command prompt, however the installation never gets past "Collecting tensorboard<1.14.0,>=1.13.0 (from tensorflow)". I have been able to successfully install other libraries like matplotlib and numpy with pip.
I have tried installing tensorboard, but that gets stuck at "Collecting tensorboard". I have tried deleting and re-installing Python, but that didn't change anything. I have tried running an admin powershell, but that also didn't change anything.
Thank you very much!
Edit: Running "pip install tensorflow -vvv" gets stuck at "Caching due to etag", which is contained within "Collecting tensorboard<1.14.0,>=1.13.0 (from tensorflow)"
Could be a problem with the version of python installation, by running the installation command with -vvv, you might see something like
Skipping link: none of the wheel's tags match: cp37-cp37m... among others. For example, if you are running windows, tensorflow is not available for python 3.7 (as seen here)

setup.py egg_info error code 3221225477

I've been trying to install IMGAUG package for an ML project. But the installation gets stuck when it tries to install scikit-image
My input: pip install scikit-image
output:
Collecting imgaug
Using cached
https://files.pythonhosted.org/...
Requirement already satisfied: scipy in
c:\users\*<username>*\appdata\local\programs\python\python37\lib\site-
packages (from imgaug) (1.1.0)
Collecting scikit-image>=0.11.0 (from imgaug)
Using cached https://files.pythonhosted.org/packages/...
Complete output from command python setup.py egg_info:
----------------------------------------
Command "python setup.py egg_info" failed with error code 3221225477 in
C:\Users\<name>~1.<name2>\AppData\Local\Temp\pip-install-qmdp6ysz\scikit-image\
Note: I've already tried installing other versions of it, upgrading setuptools and pip. Error persists.
PS: Now it's showing up on everything I try to install.
(Scroll down to a horizontal line to skip explanation and go straight to the suggested solution if you wish)
3221225477 is 0xC0000005 which is NTSTATUS STATUS_ACCESS_VIOLATION; the corresponsing error message is The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s..
In Windows, a process usually quits with this exit code if it tries to access an invalid memory address and Windows terminates it as a result. If you install Visual Studio, you'll be able to pinpoint the exact module at fault as shown on the link.
Now, this error means a bug in or an incompatibility between some of your installed extension modules (or in Python engine itself, but this is very unlikely in comparison).
The easiest way to fix is to clean up any problems with the involved modules' installation and (if that isn't enough) update them to the latest versions, hoping that whatever is causing that is fixed in them.
In particular, scipy in c:\users\*<username>*\appdata\local\programs\python\python37\lib\site-packages looks suspicious: you aren't using --user in your pip command
which suggests that your didn't pay attention to this flag when using pip before (it's official that it CAN lead to version conflicts), and some of your installed packages are installed both into %ProgramFiles%\Python37\Lib\site-packages and %APPDATA%\Python\Python37\ib\site-packages, with different versions in these two locations.
I hereby suggest you to:
decide where you want your 3rd-party modules to be
%ProgramFiles% is system-wide and requires elevation to manage, %APPDATA% is per-user and doesn't require elevation
Unless you don't have administrative rights at your machine (you do, judging by the command you gave) or have special needs, keep everything in the system-wide location for simplicity
uninstall all the modules in the other location (pip uninstall <name(s)> with or without --user)
reinstall them to the desired location, updating existing versions (-U pip flag)
if that wasn't enough to solve the problem (very unlikely), update all packages to the latest versions
This happened to me also. However I resolved it by uninstalling the package (pip uninstall ), then installing it using conda rather than pip (conda install ).

unable to install pyqt4 with multiple methods

I've been having a ton of issues in general trying to install packages on python 3 on windows. I don't know if any issues are related or not, I'm just going to try to provide as much detail to these issues as I can.
It's not just PYQT, but a couple packages are giving me issues with installing. I have a python 3.5.1 virtual environment, and when I try to install PYQT4 it gives me the error (using pip, pip3, with and without --pre):
Could not find a version that satisfies the requirement pyqt4 (from versions: )
No matching distribution found for pyqt4
This isn't the only package that has given me this exact same error, but I can't recall atm what other packages gave me issues. (Another issue I often get with other packages is error: Unable to find vcvarsall.bat. I've been through all the questions regarding that error, installing visual c fails for me).
So I decided to try to download the zip and follow this guide: http://pyqt.sourceforge.net/Docs/PyQt4/installation.html , which has me following this guide to install SIP as a requirement: http://pyqt.sourceforge.net/Docs/sip4/installation.html#downloading .
So now I'm having more problems. Part of the installation process for SIP requires using a makefile. So I downloaded make from cygwin. I run python configure.py to generate the makefile (in the proper virtualenv), and I run make, but make never ends. It keeps reading this over and over again until I kill powershell or cmd:
cd sipgen
/usr/bin/make
make[453]: Entering directory '/cygdrive/c/Users/<username>/.virtualenvs/<envname>/sip-4.17'
That directory is the location of the makefile. I'm completely inexperienced with make, so any help would be appreciated. All of these problems are while using Python 3. My python 2 virtual environments are able to install most packages fine.
Edit: My mistake, in this case it's giving the same pip error with python 2 and 3.

Categories

Resources