How to pip install from a private artifactory? - python

A private artifactory is available. We pushed a Python lib into it using Twine:
/python-XYZ/mylib/version/mylib-version.tar.gz
However, I do not understand how we can get this library using pip install.
I have tried the following (based on this):
pip install mylib==version --index 'https://myuser:mypassword#XYZ-DOMAIN.fr:443/artifactory/api/pypi/python-XYZ/simple
Which gives this:
ERROR: Could not find a version that satisfies the requirement mylib==version (from versions: none)
ERROR: No matching distribution found for mylib==version
The result is the same with the following endpoints:
/artifactory/api/pypi/python-XYZ/mylib/simple
/artifactory/api/pypi/mylib/simple
/artifactory/api/pypi/python-XYZ/simple
Given the location of my library, how can I pip install it ?

After some digging, here is what it should be in my case.
pip install mylib==version --index-url 'https://USERPWD#XYZ-DOMAIN.fr:443/artifactory/api/pypi/python/simple' --trusted-host=XYZ-DOMAIN.fr

Related

Poshmark API - pip install poshmarkapi is not working

When I do:
pip install poshmarkapi
I see below error:
ERROR: Could not find a version that satisfies the requirement poshmarkapi
ERROR: No matching distribution found for poshmarkapi
Note: you may need to restart the kernel to use updated packages.
I tried installing the Poshmark API client for Python using the following command: pip install poshmarkapi.
Can you please let me know how I can resolve this ?
Many thanks
A.T

No matching distribution found for python3-requests

Taking a course: Using Python to Interact with the Operating System. I have very poor vision, so I am trying to install some python stuff on windows 10 (please see below) so I can edit and run some of the files at home.
How can I find and install the python3-requests?
PS D:\ray\goapps\code4> C:\Users\raz\AppData\Local\Programs\Python\Python310/Scripts/pip3.exe install python3-requests
ERROR: Could not find a version that satisfies the requirement python3-requests (from versions: none)
ERROR: No matching distribution found for python3-requests
[notice] A new release of pip available: 22.2.1 -> 22.3
[notice] To update, run: C:\Users\raz\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip
PS D:\ray\goapps\code4>
Just go into command line by typing cmd in the search bar and type in exactly pip install requests and that should work from there you can just use import requests at the top of your python file and use the library.

Mamba can't create env giving 'nothing provides' but pip sees such version of opencv-python

I need to create env with
mamba create --name tf1_12__HDR Tensorflow==1.12.0 Keras==2.2.4 opencv-python==3.4.4.19 anaconda
It provides
mamba (0.7.3) supported by #QuantStack
...
Looking for: ['tensorflow==1.12.0', 'keras==2.2.4', 'opencv-python==3.4.4.19', 'anaconda']
...
Problem: nothing provides requested opencv-python 3.4.4.19
I am calling
pip install opencv-python==
ERROR: Could not find a version that satisfies the requirement opencv-python== (from versions: 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.6.27, 3.4.7.28, 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.14.53, 3.4.15.55, 3.4.16.57, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25, 4.1.1.26, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.2.54, 4.5.3.56, 4.5.4.58)
ERROR: No matching distribution found for opencv-python==
So such version exists.
I know a cheat to overcome issue using steps:
1 Create env without opencv-python
2 Install opencv-python with pip
but it can lead to conflicts inside enviroment and potentially break it.
Can you please provide a "clean" solution and/or describe the reason of this
unexpected output?
PyPI and Anaconda Cloud packages don't necessarily go by the same names. The opencv package from Conda Forge will include the OpenCV libs (libopencv) and the Python interface (py-opencv). That is, install opencv with the version you want.
BTW, as mentioned in the comments == is Pip syntax, Conda/Mamba use single =.

ERROR: Could not find a version that satisfies the requirement protos ERROR: No matching distribution found for protos when trying to install protos

I am trying to install protos using pip install protos but I get following error messages ERROR: Could not find a version that satisfies the requirement protos ERROR: No matching distribution found for protos (these are 2 different lines btw). Does anybody have the same problem because maybe I do not meet the requirements but I the problem is that I don't know which requirements, I just don't find any information. I am using python 3.6.2, pip 20.3.3 and windows 10
The protos package can be found here: https://pypi.org/project/protos/
According to the PyPi page, it requires Python 3.7 or greater. Since you are running Python 3.6 you get the error message when running pip install protos.
If you are looking for Google's protocol buffer, then you should look at pip install protobuf (docs here).

ERROR: No matching distribution found for tensorflow==1.7.1 (from unityagents)

Tried to install unityagents agents using pip install unityagents command but I'm getting this error:
ERROR: No matching distribution found for tensorflow==1.7.1 (from unityagents)
Im using tensorflow version 2.2.1
It looks like the pypi release you're installing is around 2 years old.
The way you're supposed to install the package from the mlagents package instead. See the full instructions.

Categories

Resources