I am in need of some serious help. It started when I was trying to install pandas using pip in my terminal, when I kept getting a massive error that would say the computer failed to build wheels for numpy.
I then uninstalled numpy to see if possibly a refresh would change this, and now when I try to install numpy I get this error-
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
I have tried using pip, pip3, pip 3.8 and none work for anything. I have a brand new lap top and have python 3.9 and 2.7 installed so I have literally no clue what I could have messed up because I have barely done anything with it.
Please help if you can, I am losing my mind!
p.s. I have the M1 processor if that changes anything
Related
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.
I'm new to python. I use Jupiter locally and typed:
python3 -m pip install google-colab
in Mac terminal. I needed the module for an online course and red elsewhere I could import it like this. But that was a mistake. The installation failed eventually, but it managed to uninstall a few important packages including tornado. As a result, the jupiter notebook doesn't open in the browser and I suspect this is a tip of the iceberg. I tried to install tornado again but got the errors:
ERROR: Could not find a version that satisfies the requirement tornado-6.1
ERROR: No matching distribution found for tornado-6.1
Other uninstalled modules are: six, tornado, prompt-toolkit, ipython, urllib3, ipykernel, idna, chardet, pandas (the terminal ran crazy trying to "build wheel for pandas")
How can I fix it to the point my python works again? I thought about reinstalling the whole Anaconda with all its packages but I'm not sure if this would work.
Please note I am relatively new to python so I would rather install and uninstall the whole thing again than do some serious operations on terminal, but maybe there is an easy solution?
I'd be very grateful for your help!
I've installed the latest python version 3.9.7 on my ubuntu 20.04 machine. I'm attempting to run some code that requires the Talos package, however I've attempted several times to install Talos using pip3. It does much of the work downloading and installing stuff, until it gets to something called "building wheel for scipy", and then after a lot of work, all I get is error messages. My first question is, is it possible that there is no version of Talos for 3.9.7, or that 3.9.7 is too advanced? If it should integrate Talos, how can I diagnose the problem so I can get it installed? Thx. J
This could be because the wrong version of Cython is being picked up. I have experienced this being the cause of scipy build errors in the past. I would try a pip3 install --upgrade cython first.
I've run into an odd issue where pip just won't work. I'm using the latest version of PyCharm, and I've tried both Python 3.8.10 and 3.9.6.
I've done clean installations of both, removed from PATH, reinstalled with new installer, reinstalled pip, etc.
The error code I run into appears no matter what library I am trying to download. I've tried PyAudio, PyGame, OpenCV-Python and others.
Pip was working fine a couple days ago, and no changes have been made to any files in that time.
Attempting to run pip install --upgrade pip does not have an effect.
I've been running off virtual enviroments with setuptools 40.8.0 and pip 21.1.3 installed.
The full error for installing PyAudio can be seen here: https://pastebin.com/iQmZwsRv
PyGame error: https://pastebin.com/WEF8uM2d
OpenCV-Python Error: https://pastebin.com/LuZq99Cu
Py- audio - it's not compatible with your Py charm I suppose due to the latest install updates, try to install it on the main environment. Also, try to downgrade your version of python as many dependencies are not compatible with your version of python as stated by error[it is not compatible with this Python]
Open Cv - Fails to build the wheel package as it is attributed also in error [CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.]
May I know what build tool are you using?
C++ compiler has been installed
However, manual installation of pystan in CMD will show the following prompts:"Cython>=0.22 and Numpy are required"
But cython and numpy have already been installed and the version is correct. I don't know why this prompt will appear...
I can't use "pip install pystan" either. There's a "failed building wheel for wheel" error.
Later installed on anaconda:
Successful operation, but still not successful installation:
"No module named'pystan'still appears after running"import pystan"
I've worked for nearly three hours to solve it!!! Asking for help