I am working on windows 7.
Currently I have tensorflow 2.4.1 and keras 2.3.1 installed in my laptop.
I have trained a model on coalab and saved t on my laptop. When I try to load it it gives error :
ValueError: Unknown layer: Functional
It may be due to difference in version of Keras. Google colab uses Keras 2.4.3.
When I tried to install keras 2.4.3 using command:
pip install Keras==2.4.3
I got the following error:
Loading library to get version: hdf5.dll
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: Could not find module 'hdf5.dll' (or one of its dependencies). Try using the full path with constructor syntax.
ERROR: Failed building wheel for h5py
Failed to build h5py
ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly*.
I tried to install h5py as well but it gives an error too!
Please let me know if anyone has a solution for this.
while : h5py which use PEP 517 and cannot be installed directly, try this
pip install --upgrade pip setuptools wheel
or check the python version , for example h5py 2.6 only supports up to python 3.6 , look at this.
Related
I was trying to download imageai using pip module and I got following error:
ERROR: tensorflow-intel 2.11.0 has requirement keras<2.12,>=2.11.0, but you'll have keras 2.4.3 which is incompatible.
ERROR: tensorflow-intel 2.11.0 has requirement numpy>=1.20, but you'll have numpy 1.19.3 which is incompatible.
I don't know what to do. Please help.
The error message you are seeing indicates that the current version of TensorFlow that you have installed (tensorflow-intel 2.11.0) requires different versions of Keras and Numpy than the versions that are currently installed on your system. Specifically, tensorflow-intel 2.11.0 requires Keras version less than 2.12 but you have version 2.4.3 installed, and it also requires Numpy version greater than or equal to 1.20, but you have version 1.19.3 installed.
You could try upgrading Keras and Numpy to meet these requirements:
pip install keras==2.11.0
pip install numpy>=1.20
I'm trying to install SimpleElastix for python. As far as I can tell, you can either download a whl file from https://simpleelastix.github.io/#download
or simply pip install as shown here: https://pypi.org/project/SimpleITK-SimpleElastix/
I first tried downloading it and am trying to install SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl that I have saved to drive.
I am using the following (pip has been updated):
(hids3) C:\Windows\system32>python --version
Python 3.8.0
(hids3) C:\Windows\system32>pip --version
pip 22.0.4 from C:\Users\kated\anaconda3\envs\hids3\lib\site-packages\pip (python 3.8)
I try to run pip install SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl
and get the following error:
ERROR: SimpleITK-0.9.1rc1.dev163-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform.
According to Error "filename.whl is not a supported wheel on this platform" , this could be caused by a downloading the .whl file for a wrong python version. I would expect python 3.8 to support a CPython 3.4 version or am I wrong for assuming this?
Alternative way to download SimpleElastix: https://pypi.org/project/SimpleITK-SimpleElastix/
I also tried running
pip install --user SimpleITK-SImpleElastix
in the terminal, which worked, but when I run
import SimpleITK as sitk
sitk.Elastix()
I get
AttributeError: module 'SimpleITK' has no attribute 'Elastix'
Anyone have any idea what I'm doing wrong in either case?
I tried installing Tensorflow using the pip install tensorflow, but I got this error code instead. I'll really use y'alls help
ERROR: Wheel 'termcolor' located at C:\users\user\appdata\local\pip\cache\wheels\b6\0d\90\0d1bbd99855f99cb2f6c2e5ff96f8023fad8ec367695f7d72d\termcolor-1.1.0-py3-none-any.whl is invalid.
I was trying to run scanpy's neighbors function with my genes expression dataset:
import scanpy as sc
sc.pp.pca(adata)
sc.pp.neighbors(adata)
and got this error:
C:\Users\User\anaconda3\lib\site-packages\numba\core\cpu.py:77: UserWarning: Numba extension module 'sparse._numba_extension' failed to load due to 'ContextualVersionConflict((llvmlite 0.33.0+1.g022ab0f (c:\users\User\anaconda3\lib\site-packages), Requirement.parse('llvmlite<0.38,>=0.37.0rc1'), {'numba'}))'.
numba.core.entrypoints.init_all()
I then Tried to update my llvmlite==0.33 version due to this error using
pip install llvmlite --upgrade
and got another error:
ERROR: -umba 0.50.1 has requirement llvmlite<0.34,>=0.33.0.dev0, but you'll have llvmlite 0.37.0 which is incompatible.
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Python doesn't let me to upgrade llvmlite to the newer version and therefore I cannot use scanpy's functions. I tried to update numba, I tried to reinstall everything, but nothing worked.
What should be done in order to solve this problem?
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.