When downloading numpy I encountered a failure at the end,
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'c:\\python310\\Scripts\\f2py.exe' -> 'c:\\python310\\Scripts\\f2py.exe.deleteme'
and while installing aitextgen i received this error:
ERROR: Cannot install aitextgen==0.3.0, aitextgen==0.4.0, aitextgen==0.4.1, aitextgen==0.5.0, aitextgen==0.5.1 and aitextgen==0.5.2 because these package versions have conflicting dependencies.`
The conflict is caused by:
aitextgen 0.5.2 depends on torch>=1.6.0
aitextgen 0.5.1 depends on torch>=1.6.0
aitextgen 0.5.0 depends on torch>=1.6.0
aitextgen 0.4.1 depends on torch>=1.6.0
aitextgen 0.3.0 depends on torch>=1.6.0
No idea what's causing this. I've reinstalled Python using chocolatey. Is it an issue involving an installation path? Any help is greatly appreciated.I installed these using the pip3 install [module] method.
If I judge your path to python correctly:
c:\\python310\\
Then you have python 3.10 installed. This is at this point only a beta version, not even officially released.
aitextgen 0.5.2 depends on torch>=1.6.0
The issue here is that torch only has whl files available on pypi and only up to python 3.9. You will face this problem often, as it will take some time, probably after the release scheduled in october to have official support for many python modules.
You options:
Install an earlier version of python - this is probably your best option. You probably don't depend on any specific python 3.10 features
Download and compile torch from source - this will be both tricky, esspecially on windows and is also not guaranteed to work. There is at this point no official support for python 3.10 from torch. You will probably also have to solve a similar problem for other modules when sitcking with pyhon 3.10
Related
I am having some trouble with dependencies within my python conda environement. I need to have both libraries Tornado x msgpack-rpc-python. However both seems to be not compatible.
Here are the errors I am receiving:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nbclassic 0.4.8 requires tornado>=6.1, but you have tornado 4.5.3 which is incompatible.
jupyter-server 1.21.0 requires tornado>=6.1.0, but you have tornado 4.5.3 which is incompatible.
jupyter-client 7.4.7 requires tornado>=6.2, but you have tornado 4.5.3 which is incompatible.
ipyparallel 8.4.1 requires tornado>=5.1, but you have tornado 4.5.3 which is incompatible.
ipykernel 6.15.2 requires tornado>=6.1, but you have tornado 4.5.3 which is incompatible.
HOWEVER when I try to upgrate tornado I get this error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of **the following dependency conflicts.
msgpack-rpc-python 0.4.1 requires tornado<5,>=3, but you have tornado 6.2 which is incompatible.**
I also tried to downgrade the list above(jupyter client, ..) however the environnement turn out to be unsustainable and non functional. I tried several times to create a new environment but no luck , I suppose I am doing things wrong but not sure what to do??
I have been trying to find a solution to this circular problem but I have been stuck on it for a long long time and getting out of ideas. I have downloaded Synk to help out but it is telling me the same thing is still a circular solution : updagrate tornado.
Background information:
Linux
Ubuntu 20.04
Coding in Visual Studio
Environment py38 (3.8.15)
Any help is appreciated!!
Thanks so much,
So I am trying to access the open-source SAR dataset SpaceNet 6: Expanded Dataset. I particularly need the SAR-SLC data as I want to have the raw complex-valued dataset.
I downloaded the dataset successfully using aws. Now the issue arises when I use python to open the .tif files. I tried OpenCV, matplotlib, PIL and skimage. Here the errors I get:
OpenCV: [ WARN:0#1.074] global /io/opencv/modules/imgcodecs/src/grfmt_tiff.cpp (462) readData OpenCV TIFF: TIFFRGBAImageOK: Sorry, can not handle images with 32-bit samples.
Matplotlib: cannot identify image file '<path to .tif file>'.
PIL: cannot identify image file '<path to .tif file>'.
skimage: TiffPage 0: data type not supported: 532.
Has someone already succeeded in opening this library?
I've seen that this code uses a library called solaris. I tried installing it but it requires TensorFlow version to be tf v1.13 and I already have version 2 and I need it. I tried creating a new environment to install it from scratch. As the documentation says I need to install GDAL so at this point why not? sudo apt-get install libgdal-dev but then I still got errors like:
ERROR: Cannot install solaris==0.0.1, solaris==0.0.2, solaris==0.0.3, solaris==0.1.0, solaris==0.1.1, solaris==0.1.2, solaris==0.1.3, solaris==0.2.0, solaris==0.2.1, solaris==0.2.2, solaris==0.3.0 and solaris==0.4.0 because these package versions have conflicting dependencies.
The conflict is caused by:
solaris 0.4.0 depends on torch>=1.3.1
solaris 0.3.0 depends on torch>=1.3.1
solaris 0.2.2 depends on torch>=1.3.1
solaris 0.2.1 depends on torchvision>=0.4.2
solaris 0.2.0 depends on torchvision>=0.3.0
solaris 0.1.3 depends on torchvision>=0.3.0
solaris 0.1.2 depends on torchvision>=0.3.0
solaris 0.1.1 depends on torchvision>=0.3.0
solaris 0.1.0 depends on torchvision>=0.3.0
solaris 0.0.3 depends on torchvision>=0.3.0
solaris 0.0.2 depends on torchvision>=0.3.0
solaris 0.0.1 depends on torch>=1.0.1
And it was a NEW environment without tf nor pytorch installed.
This, although a crapy solution (Do I really need to create a new env, install tf and pytorch and lot of dependencies, install GDAL, etc to open an image?) at this point I am Ok with whatever works.
I have tried to install tensorflow-data-validation 0.9.0 with pip installation, but it keeps giving me the same error: Could not find a version that satisfies the requirement tensorflow-data-validation...
isn't this version available for windows or i am just missing something?
From the PyPi documentation on tensorflow-data-validation you can see the version compatibility:
Requires: Python >=2.7,<3
So you won't be able to install it with other versions (like your 3.6.2).
Anaconda3, Python 3.6, pip version 9.0.1
pip install imagenet_utils
Error message:
Could not find a version that satisfies the requirement imagenet_utils (from versions: ) No matching distribution found for imagenet_utils
Please, help.
Read me docs on github indicate compatibility up to 3.5. Take a look at some comparable libraries to avoid this issue here:
5 Genius Python Deep Learning Libraries.
Anaconda also offers a conda install version of Keras where this specific package can be accessed:
conda install -c conda-forge keras
then for python script would read:
from keras import imagenet_utils
Assuming compatibility is not the issue, you will need to verify the anaconda package location and make sure that you are installing to that location.
I have been following the installation guide from http://machinelearningmastery.com/setup-python-environment-machine-learning-deep-learning-anaconda/
I got & am using:
conda 4.3.22
Python 3.5.3 :: Anaconda 4.4.0 (32-bit)
scipy: 0.19.0
numpy: 1.12.1
matplotlib: 2.0.2
pandas: 0.20.1
statsmodels: 0.8.0
sklearn: 0.18.2
I successfully installed theano & keras. HOWEVER, I FAIL at installing tensorflow. Please HELP.
I created a conda ‘tensorflow’ environment with python 3.5. With command
『pip install –ignore-installed –upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.2.1-cp35-cp35m-win_amd64.whl』
I got ERROR saying
『tensorflow-1.2.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform』
So i changed to version 1.0.1 and same error.
Version 1.1.0 also same error.
So i deactivated the environment, and type command
『conda install -c conda-forge tensorflow』
I got ERROR
『PackageNotFoundError: Package missing in current win-32 channels』
Instead it says the close match found is “xtensor” which i know is a C++ library that I'm not looking for.
Is it because I’m using a 32-bit Windows 10?
So I also tried running the following :
『python -m pip install –upgrade tensorflow』
and got ERROR of
『Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow』
What more requirements do i need for this?
I tried 『pip3 install tensorflow』 but somehow it could not recognized ‘pip3’. So i type 『where pip3』 and it could not find files for the given pattern. So i type『where python』. It ouput the directory of my python. Then checked if it’s already put under the path inside the environmental variable. And it has. But i still couldn't use pip3 command.
I have tried all the solutions provided from people having similar problem with me and none of them work.
This question has been answered here.
In short, yes, TensorFlow does not support 32-bit platforms. Although if you only plan on writing abstract high-level Keras code then Theano will do just fine.