EC2 pycurl installed but not found - python-3.x

When I install pycurl
>$ /opt/python/run/venv/bin/pip install pycurl --global-option="--with-openssl" --upgrade
/opt/python/run/venv/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py:230: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
cmdoptions.check_install_build_global(options)
Collecting pycurl
Using cached pycurl-7.43.0.6.tar.gz (222 kB)
Skipping wheel build for pycurl, due to binaries being disabled for it.
Installing collected packages: pycurl
Running setup.py install for pycurl ... done
Successfully installed pycurl-7.43.0.6
Then checks installation, it does not appear
>$ /opt/python/run/venv/bin/pip show pycurl
WARNING: Package(s) not found: pycurl
And of course any code wanting to use the lib does not find it (celery, for instance)
What I am doing wrong?

I found the answer to another question (sorry, I can't find the link).
This worked for me:
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
pip install pycurl==7.43.0.5 --global-option="--with-openssl" --upgrade

Related

I'm encountering an error while installing turicreate module on wsl, is there any requirements I'm missing?

whenever I try to install turicreate module on wsl it's showing an error like this
`Collecting turicreate
Using cached turicreate-6.4.tar.gz (1.9 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for turicreate, since package 'wheel' is not installed.
Installing collected packages: turicreate
Running setup.py install for turicreate ... error
error: subprocess-exited-with-error
× Running setup.py install for turicreate did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
running install
/root/turitest/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
==================================================================================
TURICREATE ERROR
If you see this message, pip install did not find an available binary package
for your system.
Supported Platforms:
* macOS 10.12+ x86_64.
* Linux x86_64 (including WSL on Windows 10).
Support Python Versions:
* 2.7
* 3.5
* 3.6
* 3.7
* 3.8
Another possible cause of this error is an outdated pip version. Try:
`pip install -U pip`
==================================================================================
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> turicreate
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
`
pip version - 22.0.2
python3.10 (I guess this maybe the problem, but I'm not sure)
windows10 OS
can someone help me to install turicreate...
I tried updating and upgrading pip versions, tried in python 2.7 and python3.10 but still got the same error.
I also tried this command,
python3 -m pip3 install -U pip
this returned
No module named pip3

How to overcome Marisol ReportLab installation error?

An attempt to install Marisol on OS X 10.15:
pip3 install marisol | tee install_marisol_log.txt
returned:
Building wheel for reportlab (setup.py): finished with status
'error'
The complete install (error log is) is posted: https://pastebin.com/raw/V9SZeyDM
Marisol dependent libraries were installed:
pip3 install reportlab
pip3 install pypdf2
Marisol dependent libraries were verified:
pip3 install reportlab
DEPRECATION: Configuring installation scheme
with distutils config files is deprecated and will no longer work in
the near future. If you are using a Homebrew or Linuxbrew Python,
please see discussion at
https://github.com/Homebrew/homebrew-core/issues/76621
Requirement already satisfied: reportlab in /usr/local/lib/python3.9/site-packages
(3.6.10)
Requirement already satisfied: pillow>=9.0.0 in /usr/local/lib/python3.9/site-packages (from reportlab) (9.1.1)
DEPRECATION: Configuring installation scheme with distutils config
files is deprecated and will no longer work in the near future. If you
are using a Homebrew or Linuxbrew Python, please see discussion at
https://github.com/Homebrew/homebrew-core/issues/76621 WARNING: There
was an error checking the latest version of pip.
The log seems to indicate that marisol installer removed reportlab-3.6.10, failed to install its preferred version of reportlab and rolled back o reportlab-3.6.10:
Installing collected packages: reportlab, marisol
Attempting uninstall: reportlab
Found existing installation: reportlab 3.6.10
Uninstalling reportlab-3.6.10:
Successfully uninstalled reportlab-3.6.10
Running setup.py install for reportlab: started
Running setup.py install for reportlab: finished with status 'error'
Rolling back uninstall of reportlab
Question: What are the steps / strategy to remedy these errors?

xmlsec installation hangs in virtualenv environement

when i try to install the package xmlsec in normal environment , it works fine and the the installation ends successfully by when i try to install the same package with the same pip3 version , it hangs:
[root#5d01783a0d80 /]# pip3 install 'xmlsec==1.3.3'
Collecting xmlsec==1.3.3
Downloading http://prrepo.fr.net.intra/nexus/repository/pypi-software-fundation/packages/xmlsec/1.3.3/xmlsec-1.3.3.tar.gz
Requirement already satisfied: pkgconfig in /usr/local/lib/python3.6/site-packages (from xmlsec==1.3.3)
Requirement already satisfied: lxml>=3.0 in /usr/local/lib64/python3.6/site-packages (from xmlsec==1.3.3)
Installing collected packages: xmlsec
Running setup.py install for xmlsec ... done
Successfully installed xmlsec-1.3.3
and in the virtual env
[root#5d01783a0d80 /]# cd /venv/awx/bin/
[root#5d01783a0d80 bin]# source activate
(awx) [root#5d01783a0d80 bin]# pip3 install 'xmlsec==1.3.3'
Looking in indexes: http://prrepo.fr.net.intra/nexus/repository/pypi-software-fundation/simple
Collecting xmlsec==1.3.3
Downloading http://prrepo.fr.net.intra/nexus/repository/pypi-software-fundation/packages /xmlsec/1.3.3/xmlsec-1.3.3.tar.gz (29 kB)
it hangs for 10 min before and it end up with error looking in external repo not reachable for a dependency (lxml) that already exist locally.
Any idea please ?

Japronto Installation failed in linux

I am seeing this error while running python3.5 -m pip install japronto
Downloading/unpacking japronto
Could not find any downloads that satisfy the requirement japronto
Cleaning up...
No distributions at all found for japronto

configure qiskit on win10 error:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

I’m new to python and I got some problem when trying to install QISKit.
First, I was using pip install qiskit on cmd, but it showed an error
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
I searched on internet and pip install scipy separately. It worked
Collecting scipy
Using cached scipy-1.0.0-cp36-none-win32.whl
Requirement already satisfied: numpy>=1.8.2 in
d:\programming\python\lib\site-packages (from scipy)
Installing collected packages: scipy
Successfully installed scipy-1.0.0
Then I tried pip install qiskit again. It showed an error:
Found existing installation: scipy 1.0.0
Uninstalling scipy-1.0.0:
Successfully uninstalled scipy-1.0.0
Running setup.py install for scipy ... error
……
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Rolling back uninstall of scipy
So I used the second way:
git clone https://github.com/QISKit/qiskit-sdk-py
cd qiskit-sdk-py
then
pip install -r requirements.txt
again
Installing collected packages: scipy, sympy
Found existing installation: scipy 1.0.0
Uninstalling scipy-1.0.0:
Successfully uninstalled scipy-1.0.0
Running setup.py install for scipy ... error
……
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Rolling back uninstall of scipy
how can I solve this and add QISKit to python lib?
reference:
https://github.com/QISKit/qiskit-sdk-py/blob/master/doc/install.rst#3.1-Setup-the-environment
Installing scipy, at least the version currently required by QISKit, on Windows requires that you have a couple of different compilers installed, which you probably don't. I recommend you install Anaconda. If you download the full Anaconda package, it includes the appropriate scipy binary, or alternatively you can do conda install scipy=0.19 before you do pip install qiskit.
I think that should fix your current issue but feel free to reach out with any others -- I'll be happy to help. You can also find more documentation at qiskit.org, github.com/QISKit/qiskit-sdk-py, and on the IBM Q experience community forums.
Cheers,
Doug

Resources