Are python packages version specific? - python

I ma trying to install https://pypi.python.org/pypi/python-epo-ops-client
I tried installing it from pip from both latest version.
python 2.7.12 and
python 3.5.2
for both of the version it says
C:\Users\me>pip install python-epo-ops-client 2.1.0
Collecting python-epo-ops-client
Using cached python_epo_ops_client-2.1.0-py2.py3-none-any.whl
Collecting 2.1.0
Could not find a version that satisfies the requirement 2.1.0 (from versions:
)
No matching distribution found for 2.1.0
As I am completely new to python, question is:
1) Do I need to install all python version to see which version above module is compatible with?
Or
2) can I know which version of python will be compatible with above version?
I want to install python for above package only. please suggest.

You are having space between python-epo-ops-client & 2.1.0, so it is trying to install two packages.
(1) python-epo-ops-client and
(2) 2.1.0, but there isn't any package named "2.1.0"
To install specific version you need to mention ==.
pip install python-epo-ops-client==2.1.0

Related

Can't get Tensorflow 2.9 on Mac?

I'm trying to build a custom environment for a TF agent but for any modules that I need I get the error:
ImportError: This version of TensorFlow Probability requires TensorFlow version >= 2.9; Detected an installation of version 2.6.3. Please upgrade TensorFlow to proceed.
For !pip install tensorflow --upgradeI get:
Requirement already satisfied: tensorflow in ./opt/anaconda3/lib/python3.9/site-packages (2.6.5)
I also tried !pip install tensorflow-macos because it was suggested on pypi.org but then I get:
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none) ERROR: No matching distribution found for tensorflow-macos
If I try to specify 2.9 with !pip install 'tensorflow==2.9' --upgrade that does not work either:
ERROR: Could not find a version that satisfies the requirement tensorflow==2.9 (from versions: 2.5.0, 2.5.1, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3)
ERROR: No matching distribution found for tensorflow==2.9
I also tried all of these in my Mac terminal (with python -m pip...) as well as in VS code terminal but I really can't seem to get the Tensorflow version that I need for the agents and environments …
Ok so apparently, Tensorflow 2.9 is only available on macOSX 10.14 and onward ... yikes

No matching distribution found for xyzservices during installation

When I try pip3 install xyzservices I receive:
Collecting xyzservices
Could not find a version that satisfies the requirement xyzservices (from versions: )
No matching distribution found for xyzservices
python --version returns:
Python 3.6.8
pip3 --version returns:
pip 18.1 from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip (python 3.6)
What is going on here?
All versions of xyzservices require Python >= 3.7. Even the oldest version 2021.7. See the code at the oldest tag 2021.7.

Want to install tensorflow on python version- 3.7.6

I am trying to install tensorflow, but encountered errors like -
Could not find a version that satisfies the requirement tensorflow (from version: none)
No matching distribution found for tensorflow.
My installations are as follows :
Python version= (3.7.6)
Anaconda version =(1.7.2)

ERROR: Could not find a version that satisfies the requirement tensorflow==1.2.1 ? pip cannot find tensroflow 1 versions

I cannot install any tensorflow 1 version in my virtual env.. it is required by a project that I'm trying to run..
pip install tensorflow==1.2.1
ERROR: Could not find a version that satisfies the requirement tensorflow==1.2.1 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3)
ERROR: No matching distribution found for tensorflow==1.2.1
Tried things suggested here :
Tensorflow r1.0 : could not a find a version that satisfies the requirement tensorflow
my python version is not old : 3.8.5
my pip version is OK : 20.0.2
i still CANNOT install tensorflow 1.2.1 ...
what i gotta do.. I am using ubuntu 20
From https://www.tensorflow.org/install/pip:
System requirements:
Python 3.5–3.8
Python 3.8 support requires TensorFlow 2.2 or later.
There are two options:
Use older version of python (3.5-3.7)
Use TensorFlow 2.2 or later

python pip instal apns 0.2.1

I'm trying to use apns-client 0.2.1 but I only get an error message.
22:56:01 $ pip install apnsclient==0.2.1
Collecting apnsclient==0.2.1
Could not find a version that satisfies the requirement apnsclient==0.2.1 (from versions: 0.1)
No matching distribution found for apnsclient==0.2.1
How can I install 0.2.1 version and then save it in requirements.txt? I need it in this way because my hosting use this file too.
The package is called apns-client, notice the dash.
pip install apns-client

Categories