Issue Installing scikit image in python 3 - python-3.x

I am having issues installing scikit-image for use with python3
I have it installed for python version 2.7 using pip install. I am now trying to install it in my folder for python3 and am getting this issue
Obtaining file:///usr/lib/python3/dist-packages/scikit-image
Collecting numpy>=1.11 (from scikit-image==0.14.dev0)
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement numpy>=1.11 (from scikit-image==0.14.dev0) (from versions: )
No matching distribution found for numpy>=1.11 (from scikit-image==0.14.dev0)
I am navigating to the source folder and using
sudo pip install -e . as per the documentation. I have also tried sudo pip3 install -e . http://scikit-image.org/docs/dev/install.html
I am new to Ubuntu/programming so don't understand the issue; looking at the error it talks about numpy version 1.11. I do have this installed in my python3 folder so I don't understand the issue. The only way I have been able to install skimage for python3 is by using synaptic package manager, unfortunately, the only version available is version 0.10.1

Related

How do I update PIP repository in order to make new versions of python packages visible?

I'm setting up a RHEL8 (8.7) based Docker container, with Python 3.8.13 installed (installed python3-pip, python3.6, python 3.8 and 3.9 too). I have tried to install some Python libraries using requirements.txt:
RUN pip3 install -r requirements.txt
The txt file is recognized, some of the requirements are found and installed, but some of them are exiting with the failure code: 1
For example, I want to install joblib 1.2.0 and numpy 1.23.2, so my requirements.txt file has the following entries too:
joblib == 1.2.0
numpy == 1.23.2
But the build exits with the following as soon as it reaches the "joblib" line:
Collecting joblib==1.2.0 (from -r requirements.txt (line1))
Could not find a version that satisfies the requirement joblib==1.2.0 (from -r requirements.txt (line1)) (from versions: 0.3.2d.dev, ..*omitting a massive list of versions*.. 1.1.0, 1.1.1)
No matching distribution found for joblib==1.2.0 (from -r requirements.txt (line1))
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
I have tried to install EPEL and probably install Python 3.10 or 3.11 but did not succeed, probably not supported by RHEL8.
I have gone through the following checks advised for cases when pip does not find the correct version:
pip install -r requirements.txt command is indeed running with the -r option.
version of pip is pip3, matching the installed Python3
name of the module is not misspelled, correct
the listed modules are not built-in modules (they indeed have to be installed separately)
package does support the version of Python:
Joblib 1.2.0 supported Python versions are 3.7+ (as stated, 3.8 and 3.9 is installed too)
Numpy 1.23.2 supported Python versions are 3.8-3.11
So these should be visible for pip3 installer - yet they are not, Joblib max offered version is 1.1.1...
Is there a workaround or solution for this?

How to install libdoc2testbench on Ubuntu

libdoc2testbench is a tool of Robot Framework which supports importing test results to imbus testbench. Due to Robot Framework documentation, it is to be installed by
pip install robotframework-libdoc2testbench
I want to install it on Ubuntu 18.04; there I get the error:
Could not find a version that satisfies the requirement robotframework-libdoc2testbench (from versions: )
No matching distribution found for robotframework-libdoc2testbench
Best regards
Gerhard
You are probably calling pip from Python 2.7.
Make sure you use Python 3, for example with:
python3 -m pip install robotframework-libdoc2testbench
EDIT: You can download the .wheel or source tar from pypi.org and install with pip pointing to it (and then if needed, download other required packages).
However the solution to your problem is the Python version. From the project page, we see it needs Python 3.7.

ERROR: Could not find a version that satisfies the requirement tensorflow (fro versions: none)

I have MS Server 2012R2x64 and Python3.7 , i have installed needed packages, but when i try install tensorflow, i get sush error
C:\Windows\system32>pip3 install tensorflow
Collecting tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (fro
m versions: none)
ERROR: No matching distribution found for tensorflow
I saw many similar topics here, but no one helped me.
This error means that there is no version(distributuon) for my OS,
Why there is no distirbution? because on my Win 8.1 x 64, python 3.7.2 tensorflow was installed very quickly. But on my server there is more RAM, so to perform analysis i need my server.
How to install tensorflow on my server?
In case people are still having this problem, it seems TensorFlow simply stopped hosting certain versions from PyPI. The pip error should now tell you what options are actually available. For example:
$ pip install tensorflow==1.11.0
Collecting tensorflow==1.11.0
ERROR: Could not find a version that satisfies the requirement tensorflow==1.11.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0)
ERROR: No matching distribution found for tensorflow==1.11.0
To install tensorflow normally with pip from a requirements file, you have to use one of the supported versions for example the ones listed above. The closest one for the example would be 1.13.1. However the easiest fix is to change the requirement to tensorflow>=1.11.0, which will install the latest ver 1 distribution, 1.14.0.
Try to follow with these instructions:
Install TensorFlow with pip
In particuar, you can try using this command:
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
but if it does not work, additional tips or other URLs can be found under the link above.
I hope I helped.

Is there any way by which I can install pypiwin32 in python version 3.7.1

I am trying to use wmi or netuse. For which, I need to have pypiwin32 in the path.
How to connect to a remote Windows machine to execute commands using python?
I am trying to achieve close to something like above.Is this package is available for 3.7.1 version of python.
I have tried installing it using
- pip
- going to its website
- cherry package
pip install -U pypiwin32
Collecting pypiwin32
Using cached https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl
Collecting pywin32>=223 (from pypiwin32)
Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: )
No matching distribution found for pywin32>=223 (from pypiwin32)
It looks like the pywin32 project has published Python 3.7-compatible releases for version 223:
pywin32-223-cp37-cp37m-win32.whl
pywin32-223-cp37-cp37m-win_amd64.whl
and version 224:
pywin32-224-cp37-cp37m-win32.whl
pywin32-224-cp37-cp37m-win_amd64.whl
It seems like the platform you're installing from is not compatible with these releases, is it not a Windows machine?

i have problem with package installation deepmatcher

hello i want to install python package deepMatcher i used pip command
pip install deepmatcher
get this error :
Could not find a version that satisfies the requirement torch==0.3.0
(from deepmatcher) (from versions: 0.1.2, 0.1.2.post1 No matching
distribution found for torch==0.3.0 (from deepmatcher)
python 3;6
windows 10
Instead of using torch try using 'torchtext==0.2.3' instead. Deepmatcher has a lot of dependency issues, especially with the torch package.
I had a similar problem on Windows 10, but with fasttextmirror. The solution that worked for me was to run the following command:
pip install git+https://github.com/anhaidgroup/deepmatcher#egg=deepmatcher
Credits to SO answer: https://stackoverflow.com/a/15268990/2516301

Resources