Failure to pip install tensorflow on M1 mac - python

My environment is using Python 3.7 in conda, when attempting a pip install -r requirements.txt I get the following.
Collecting tensorflow~=2.4.0
Downloading tensorflow-2.4.4-cp37-cp37m-macosx_10_14_x86_64.whl (174.3 MB)
|████████████████████████████████| 174.3 MB 20.3 MB/s
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu~=2.4.0 (from versions: none)
ERROR: No matching distribution found for tensorflow-gpu~=2.4.0
Are there any suggestions here to fix this or to get an insight into what is happening here. I believe the line causing the issue in the requirements.txt is
tensorboard~=2.4
tensorboard-plugin-wit~=1.8
As suggested if I try the command
python3 -m pip install tensorflow-macos
I get the following
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)
ERROR: No matching distribution found for tensorflow-macos

Related

Version error of torchvision dependency when installing medcat via pip

When I attempt to install medcat via
pip install medcat
I get the following error:
ERROR: Could not find a version that satisfies the requirement torchvision~=0.8.0 (from medcat) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.5.0, 0.9.0, 0.9.1)
ERROR: No matching distribution found for torchvision~=0.8.0 (from medcat)
To me, this would imply that there is no torchvision version 0.8.0.
How do I get around this issue when installing the medcat package?
This issue was resolved by installing medcat via:
pip install --upgrade medcat -f https://download.pytorch.org/whl/torch_stable.html

How can I install a specific version of socketio 4.4.0?

I have some issues with fxcm packages and I need to install python-socketio 4.4.0. However, pip cannot this version.
(base) C:\Users\murth>pip uninstall python-socketio
Found existing installation: python-socketio 5.0.4
Uninstalling python-socketio-5.0.4:
Would remove:
c:\users\murth\anaconda3\lib\site-packages\python_socketio-5.0.4.dist-info\*
c:\users\murth\anaconda3\lib\site-packages\socketio\*
Proceed (y/n)? y
Successfully uninstalled python-socketio-5.0.4
(base) C:\Users\mur>**pip install python-socketio 4.4.0**
Collecting python-socketio
Downloading python_socketio-5.0.4-py2.py3-none-any.whl (52 kB)
|████████████████████████████████| 52 kB 337 kB/s
ERROR: Could not find a version that satisfies the requirement 4.4.0 (from versions: none)
ERROR: No matching distribution found for 4.4.0
(base) C:\Users\mur>
pip install python-socketio==4.4.0
The == operator is used to specify the version wanted, like the follow sintax:
pip install module==module_version
So, what you want is:
pip install python-socketio==4.4.0

tensorfow addon problems while downloading rasa on my mac os

I tried downgrading python to 3.6 and upgraded pip yet no changes. This error shows up while downloading Rasa.
ERROR: Could not find a version that satisfies the requirement tensorflow-addons<=0.12,>=0.10 (from rasa) (from versions: none)
ERROR: No matching distribution found for tensorflow-addons<=0.12,>=0.10 (from rasa)
As the error suggests, you have to manually install the correct version of tensorflow-addons before installing rasa.
Try
pip install tensorflow-addons==0.11.2
and then install rasa again

MailCorpus using pip

I have python 3.7.4 and want to install MailCorpus using pip.
I use this but I receive error:
>pip install MailCorpus
Collecting MailCorpus
ERROR: Could not find a version that satisfies the requirement MailCorpus (from versions: none)
ERROR: No matching distribution found for MailCorpus
Any problem with version?

How to install old version of library in Pip3

I would like to use opencv-python and opencv-contrib-python versions in 3.3 or below on Python 3.7. The issue is that I can't seem to get them on pip3. I need it to be pip3 and Python 3.7 because it's to run on Google Cloud Functions.
If I run $ pip3 install opencv-contrib-python== to get the versions I get:
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
and from pip3 install opencv-python==
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
How can I get older versions like 3.3.1.11 which are available in pip2?
Of course deploying trying to get the old version on GCloud gives me
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`pip_download_wheels` had stderr output:\n Could not find a version that satisfies the requirement opencv-python==3.2.0.7 (from -r requirements.txt (line 2)) (from versions: 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25)\nNo matching distribution found for opencv-python==3.2.0.7 (from -r requirements.txt (line 2))\n\nerror: `pip_download_wheels` returned code: 1", "errorType": "InternalError", "errorId": "91F6A3AC"}}

Categories