I am trying to install allennlp via pip on the latest version of macOS Catalina. The Python version is 3.9.0. The pip version is 20.2.4.
I was just able to install only a couple of weeks ago, but now I receive the following error when I run the command:
pip3 install allennlp allennlp-models
ERROR: No matching distribution found for torch<1.8.0,>=1.6.0 (from allennlp)
This is really bad because a time-sensitive project I am working on right now completely depends on allennlp working. I needed to reinstall due to some git issues, and my virtual env was reset. What can I do to resolve this issue?
Thanks.
EDIT: Somehow I ended up uninstalling 3.9 in homebrew and now I'm stuck at jsonnet. It errors out. I saw some posts about this issue, but none of the recommendations work.
EDIT2: I tried reinstalling brew's python 3.9. jsonnet standalone works again, but then I have the pytorch issue again.
I'm stuck in a loop. Neither the system macOS 3.8 python nor the latest 3.9 home-brew python works. I'd rather get the home-brew python working, but there's no valid version of torch available for that one apparently.
Do NOT accidentally use home-brew to download the latest Python 3.9. That isn't compatible with a lot of the required libraries.
Phew.
Related
I have installed one version of python a while ago, that was version 3.9.6. I recently installed version 3.11.1 as I am once again using python. I am trying to follow a tutorial on a webscraper and when I try to import the package "requests bs4" using the command python -m pip install requests bs4 I am told that the requirement is already satisfied. This is true that I have it installed in version 39, so my question is how do I direct pip to install it in the newest version of python that I currently have installed.
I tried to mess with the path by deleting version 39 off my path leaving only 311 but when I repeat the command above it returns that the same error as above. Ive looked at other problems very similar to mine but none quite the same, so when I try the solutions for others it doesn't quite work for me.
I am using windows 11
I am attempting to install the Deepspeech library for Python on my Ubuntu 22.04 system.
I've created a virtual environment and then run pip install deepspeech. However, all I get back is the following error:
ERROR: Could not find a version that satisfies the requirement deepspeech (from versions: none)
ERROR: No matching distribution found for deepspeech
I can access deepspeech on tbe Pypi website so I know it's there. Could this have something to do with the fact that I'm running Python 3.10?
Any suggestions appreciated.
Thanks
yes, it seems the latest release is for 3.9 as seen in pip and this issue and the release notes
Perhaps try installing another python version alongside 3.10.
To be fair, if I were you I'd probably spin up a virtual machine instead of messing with my daily driver's python installations. Or find a different, maintained library.
Intuitively, it feels wrong to install another version, as ubuntu (or linux in general?) uses python as part of it's operation. (also mentioned in attached answer). If the "python3"/"python" symlinks somehow get remapped to the old version, it's gonna be problematic. be careful!
Due to this issue PyPy Error: AttributeError: No symbol SCDynamicStoreCopyProxies found in library <None>
the current pypy3 version in homebrew is basically unusable for me.
I see the issue has been fixed in the pypy3 nightly builds, but I would like to avoid going through all the hoops of installing that. Is there an easy way to, for the time being, install an older pypy3 version via homebrew?
There does not seem to be a pypy3#7.3.2 available.
Trying this answer https://stackoverflow.com/a/7787703/9978001 gives me
Invalid usage: Installation of pypy3 from a GitHub commit URL is unsupported!
No, older PyPy versions will not work on BigSur (macos11)
setup.py within the folder raises:
setup.py is not yet supposed to work. Please Use PyInstaller without installation.
as mentioned here. I couldn't follow the solution mentioned there. "pip install pyinstaller" raises the same error. I unzipped the 2.0 version but am now stuck on how to proceed. (for clarification - I want to install pyinstaller-2.0 on my machine so that I can use it to bundle Python modules and send it to others). I have looked at this and this but still no luck. OS = Mountain Lion and Python = 2.7. Pls. help.
I found that installing the development version solved it when I had the problem.
I have numpy and matplot installed and working properly with python 2.7, but when I use pip to install scipy, I get this error.
numpy.distutils.npy_pkg_config.PkgNotFound: Could not find file(s) ['/usr/local/lib/python2.7/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini']
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /var/folders/61/dpn0d5p51z19g5vypnmh3vfh0000gn/T/pip-build/scipy
There is no end to the amount of grief that you can run into when trying to install numpy, scipy, and matplotlib on Mac OS X. If you want to stay on the bleeding edge I would suggest downloading the git repositories and building each one.
If you don't need to be on the bleeding edge I would suggest, following the instructions on the SciPy web site:
http://www.scipy.org/Installing_SciPy/Mac_OS_X
Finally, there is the great work that Chris Fonnesbeck: At https://github.com/fonnesbeck/ScipySuperpack
The Fonnesbeck method has never failed for me.
I also was not able to install scipy using pip. However an option that has worked for me was using the .dmg package provided by scipy.org.
Important: you will have to update to the latest version of python in your Mac OS. That is, you can still use the Python 2.7, however it is necessary to update to the latest build which you can download at python.org.
I could suggest you to use some package manager for Mas OS X (for example macports). Using a kind of such system could avoid you from such things like manual resolving of dependencies, and so on.