Issue with "pip install os-sys" on a mac 10.15 - macos

When I run the "pip install os-sys"
the following error comes up
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32->os-sys) (from versions: none)
ERROR: No matching distribution found for pywin32>=223 (from pypiwin32->os-sys)

https://pypi.org/project/os-sys/
Under Introduction heading it contradicts the documentation and says to install via 'pip install os_sys' (an underscore as opposed to a hyphen)
Try that!

Your module seems to depend on pywin32 which are extensions for python to access the win32 API. It is therefore Windows specific and does not work on MAC.
os-sys does therefore incorrectly state that it is os independent and can only be installed to a windows machine

Related

Unable to install the deepspeech library from pip. Can't find the module

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!

Pip could not find a version that satisfies the requirement torch (from versions: none)

I am trying to install PyTorch on my Windows 11. I have Python 3.8.1, and pip 22.2.2. I have tried running the command py -m pip install torch, but it keeps returning the error:
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
I have gone through various StackOverflow posts and tried many different strategies. I even uninstalled and re-installed pip on my system using the get-pip.py file. Nothing seems to work.
Suggestions?
Just came across another post that mentioned how it needs to be the 64-bit version of Python to allow installation of PyTorch.
Just installed Python 3.9.13 with the 64-bit installer, and the installation worked. So, if anyone else is running into issues, would recommend first running python in command shell and checking whether it is 64 bit or 32 bit.

No matching distribution found for PySide2

I get this error when trying to install PySide2 from the Mac's Terminal:
ERROR: No matching distribution found for PySide2
I checked to make sure I have only 1 installation of Python on my MacBook. The screen shot shows the commands I used to check where Python is located and the recommended command I've seen online. I also have the latest version of pip and Python installed. I need PySide2 for PySimpleGUIQt. I also tried home brew, but it also couldn't locate PySide2, but found something called PySide#2 which I don't know if that's another name for PySide2.
It's cause you have python newest then pyside2 support. I try to install pyside2 on python 3.10 (3.9 same error) and get this error.
Proof:
But in 3.8 it's worked (but on Pypi https://pypi.org/project/PySide2/ it's must work and on 3.9 and 3.10)

fatal error: 'libcouchbase/cbft.h' file not found

fatal error: 'libcouchbase/cbft.h' file not found
Error while installing couchbase.
command used: sudo pip install couchbase.
installing libcouchbase is required.
(in my case, updating libcouchbase did the trick)
For Mac:
brew unlink libcouchbase
brew install libcouchbase
sudo pip install couchbase
libcouchbase/cbft.h is a C header file recently added to libcouchbase in order to support the Couchbase Full Text (cbft) Search developer preview in Couchbase Server 4.5. It appears in this instance that you have previously installed an older version of libcouchbase without full text support and you are trying to install a new version of the Couchbase Python client with full text support. The Couchbase Python client relies on libcouchbase to handle the full-text queries and needs the cbft.h header file to allow it to call into libcouchbase.
The answer in the case (as you identified yourself) is to update your version of libcouchbase. On OSX this can be done using brew, on supported Linux platforms you can add our package repositories & install using apt-get/yum, and on Windows you can download our prebuilt binaries - you can find details on how to do this in the documentation (http://developer.couchbase.com/documentation/server/current/sdk/c/start-using-sdk.html).

can't install scipy on mac OS X

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.

Resources