I have been trying to install SciPy from PyCharm for some time. I have tried using the in-built package installer, however it would fail. Also I tried installing as a .whl and running as
Pip install scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
and that would fail too. Currently unsure where to move forward from here. I use Windows 10 and am currently using Python version 3.10 64 bit. The error message that is coming up is
ERROR: scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is not a supported wheel on this platform.
This may be caused because Scipy is not supporting Python 3.10 (yet). scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is the first wheel that appears on PyPI. I suppose that PyCharm got confused, and tried to find a compatible wheel.
You have to wait for a compatible release from the Scipy developers (seems like they are waiting for some issues to be resolved). In the meantime, you can try a lower Python version (what about Python 3.9?)
Related
This started with me trying to install the pandas-profiling library, which involves an update to SciPy. After this failed repeatedly due to wheel errors (more on this), I used SciPy to test what was going on, and found out this was failing to update, even when using "pip install -U SciPy"
Screenshots of errors below -- what is frustrating is that the log file it claims to generate in fact never is generated and there is not a folder or file where it claims to be and I have been through several iterations of tracking down, and in some cases having to create folders that were missing, updating 2017 build tools based on some of the errors that came up. That could be a whole other thread, but this is where it stands now when I try to update SciPy:
Screenshot of output part 1
Screenshot of output part 2
At this point I am immensely frustrated. What is the fix here? Will uninstalling all Python instances fix this? Or is there a deeper problem? I assumed the latter, but I have been installing things that seem to be missing and there's always something more. What the heck is going on? How can this be so screwed up on my machine and apparently unfixable?
Tried already:
pip install wheel
pip install meson
..and about a million iterations of installing other libraries or different flags on pip, no binary, update, etc. Python's not supposed to be this hard to set up, right? It wasn't before....
The issue looks like it's because you have 32 bit version of python installed and you are going from version 1.4.1 to 1.9.2.
SciPy v1.4.1 has a wheel (prebuilt binary) for 32 bit windows for python 3.8
SciPy v1.9.2 only has a wheel for 64bit windows python 3.8.
So when you installed it first (v1.4.1) everything was already compiled for you and it would have installed no problem.
As there is no wheel for v1.9.2 pip is attempting to build and compile everything from source (tar.gz file).
The SciPy docs say this is a nontrivial exercise but do provide steps https://scipy.github.io/devdocs/dev/contributor/building.html
You should be able to upgrade to v1.9.1 as this has wheel for python 3.8 32 bit.
I have been trying to install PySide6 on my PC (Windows 10 64bits) with Python 3.9.0 installed, but I keep getting errors every time.
I used the command pip install PySide6 It is not working for me.
Any help will be appreciated.
Error:
ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none) ERROR: No matching distribution found for pyside2
Check if you Python installation is 64 bit and not 32 bit. It has an impact on compatible and thus available binaries.
At the time of writing:
The problem is that most of the binaries are not yet compatible and are not yet compiled for Python 3.9 at the time of writing. If you want the best compatibility, use Python 3.7 or Python 3.8. Most of the packages have been compiled for Python 3.8 but not many for Python 3.9.
For the future people that come here:
I would recommend you to keep one minor version behind the current stable release to not face dependency problems as the above section explains.
For Example:
If current stable release is Python 3.12 then you should install Python 3.11 or Python 3.10. Just one or two versions behind the current stable release.
I'm having trouble installing packages and using them in Pycharm. I've followed various threads (I'm new to Macs and seem to have tried everything) now I'm stuck.
In this case, I want to use the package xgboost.
I have brew installed, after launching a terminal using Rosetta:
%brew install xgboost
Warning: xgboost 1.3.3 is already installed and up-to-date.
It appears installed OK here:
/opt/homebrew/Cellar/xgboost
I also have Python installed here:
/opt/homebrew/Cellar/python#3.9
But no matter how I configure an Interpreter in Pycharm, I can't seem to get the package recognised.
Where have I gone wrong?
I am very unsure exactly how, but I've got this working.
Following: https://abbasegbeyemi.me/blog/homebrew-python-apple-m1
I changed the order of elements in my path:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin
then a new interpreter in Pycharm using:
usr/local/Cellar/Python#3.9/3.9.2_2/bin/python3.9
Now I can install packages just using pip in pycharm and it works.
This has been 6 hours of pain - warning to anyone who isn't well versed in macs, setting up an M1 for python dev was a complete nightmare for me.
Docs: https://xgboost.readthedocs.io/en/latest/build.html
Pre-built binary wheel for Python
If you are planning to use Python, consider installing XGBoost from a pre-built binary wheel, available from Python Package Index (PyPI). You may download and install it by running
# Ensure that you are downloading one of the following:
# * xgboost-{version}-py2.py3-none-manylinux1_x86_64.whl
# * xgboost-{version}-py2.py3-none-win_amd64.whl
pip3 install xgboost
My tensorflow 2.0.0beta1 runs normally, but I cannot install tensorflow-text using the command pip install tensorflow-text (as described on the tensorflow page). I can find it using pip search tensorflow-text but I am getting an error
ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)
There are no requirements for this package (i.e. a specific python version).
I am running on windows, using conda, python 3.6.9
Update
The first release candidate of 2.4.0 was published today which features windows wheels for the first time. 2.4.0rc0 on PyPI. Note that only wheels for Python 3.6 and 3.7 are working properly at the moment. Install via e.g.
> py -3.7 -m pip install tensorflow-text==2.4.0rc0
Original answer
At the time of writing this, tensorflow-text is not available for Windows yet.
Windows is something we do wish to add. We've had some difficulties getting a working package though, which is why it is not available yet. The difference between this library and tensorflow-probability is we make use of custom ops written in c++, and building those shared libraries to work well with Tensorflow inside Windows has had issues; plus, the lengthy build times on Windows has made iterating on these issues slow. While the next beta release (this week) will not include Windows, we would like for the next release to include it.
Source.
I've been trying to install tensorflow 1.0.1 in a variety of ways with no luck. Currently using Python 3.7 on Windows 10 (64 bit platform). I have plenty of CPU and memory power, but essentially little gpu power (using a server). My best bet was to use install an older tf version through a .whl file (in virtualenv), but keep getting an error. I download this while in the directory of the file:
pip install tensorflow-1.3.0-cp35-cp35m-win_amd64.whl
but keep getting-
tensorflow-1.3.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
I prefer to continue using tf through Windows and CPython.... unless there's no other way
You need to use 'cp37' whl file instead of'pip install tensorflow-1.3.0-cp35-cp35m-win_amd64.whl'
cp35 is meant to be installed on Python 3.5.
But i think 1.3.0 only support up to Python 3.6 (https://pypi.org/project/tensorflow/1.3.0/#files)
Hope this helps, I'm also new to this and please correct me if I'm wrong.
Cheers