Can all/most python pip packages be installed using pypy3? - python

I am able to install the python3 package of forexconnect using:
python3 -m pip install forexconnect
but when I try to install it for pypy using:
pypy3 -m pip install forexconnect
I get the following error,
ERROR: Could not find a version that satisfies the requirement forexconnect (from versions: none)
ERROR: No matching distribution found for forexconnect
I have looked through the pypy documentation and can't work out what I need to do now. Perhaps I need to re-compile/rebuild the library but unfortunately my knowledge of python isn't good enough to understand what is probably quite straight-forward.
Please, does anyone know what is going on here and what needs to be done?

forexeconnect does not release a source tarball, so they must build a binary version for each python version they wish to support and upload that to PyPI. Most packages will release a source tarball and upload that to PyPI, then pip install can build the binary package from source. In this case, the package provider (assuming they do not want to release the source) would have to build a version for PyPy, there is nothing pip nor PyPy can do.

To see supported versions by pip try
pip install forexconnect==0
Then you can set specifical version with
pip install forexconnect==versionnumber

Related

pip does not find the version of the package to install

I want to install pytorch3d version 0.3.0 or above, but pip sees only 0.0.1 version for installing. I runned next commands:
pip install pytorch3d==0.3.0
And got the next error:
ERROR: Could not find a version that satisfies the requirement pytorch3d==0.3.0 (from versions: 0.0.1)
ERROR: No matching distribution found for pytorch3d==0.3.0
If I run the install command without a specific version, pip will install the package with version 0.0.1.
My environment:
Windows 10 x64
Python 3.9.7
pip 21.2.4
Note:
direct internet connection, no proxy used
I haven't others versions python on pc
same errors when installing next packages: torchvision==0.7.0, torch==1.6.0
I tried with the virtualenv and without them
I installed Python from the windows store.
From their installation guide and your requirements use:
pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu102_pyt190/download.html
Specified package cannot be installed via pip, because not supported on my os(Windows 10). This can be seen on the page with the version and available files for download of the required package.

ERROR: You must give at least one requirement to install - CDSW

I am trying to install packages on my cdsw environment.
I have placed the packages in my cd /home/ folder
and I am running below command:
pip install --no-index --find-links=/home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
I get below error:
ERROR: You must give at least one requirement to install (maybe you meant "pip install /home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl"?)
Linux version:
4.4
Python 2: Python 2.7.11
Python 3: Python 3.6.1
Java: openjdk version "1.8.0_211"
How do I resolve this problem.
Currently, you are only passing information to pip of where you want to find the package but not what package to install. find-links is used to pass a location of where your package will be located (and not the package).
To successfully installl you can use:
pip install --no-index /home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Edit 1:
Based on your comments, you also do not have the whl downloaded. So, you can also simply install scipy using the command:
pip install scipy
or can download a specific whl file from scipy's github
Edit 2:
Since you still are running into the error, and have 2 python versions installed, the pip command might be associated with python2.7. In that case, it is likely that python3 is the command associated to the python3 installation and python is the command associated to the python2 installation. Using the command in the format below will install scipy correctly.
python3 -m pip install --no-index /home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Edit 3:
You have python 3.6.1 installed on your machine, which is not supported by scipy v1.7.1. You have 2 options to fix this issue:
Upgrade to a newer version of python
Install a version of scipy which has python 3.6 support. I looked into the same and found v1.5.4 as the last version with support for python 3.6 support. You can download the whl for the same here.
Make sure you are downloading the file containing a file with cp36 in it, since those will be the files compatible with python 3.6

Python Installing Modules on Mac OS

I am new to Python and terminal prompts/installs and I keep running into installation errors when trying to install modules like Pandas.
I have successfully installed "pip install pandas"
I am unable to install this with pip3 however.
Collecting pandas
Could not find a version that satisfies the requirement pandas (from versions: )
No matching distribution found for pandas
I have pip3 installed and python3(this comes with mac os).
I do not understand the conflict between the versions. If I install using pip, its only compatible with python2?
Why wouldnt I be able to install it using pip3 (see error above)?
Am I somehow installing in the wrong directories or not making the correct distinction for python3 and pip3 version compatibility? Thanks for any insight.
As already said in the comments, pip installs modules for python2. Also, you can't run pandas as a command on the shell.
pip3 install pandas works for me, on python3 (v3.7.4), which was installed directly from a Mac installer package on the python website. No 'environment configuration' was required.
>pip3 install pandas
Collecting pandas
Downloading https://files.pythonhosted.org/packages/ab/ba/f97030b7e8ec0a981abdca173de4e727b3a7b4ed5dba492f362ba87d59a2/pandas-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (9.8MB)
100% |████████████████████████████████| 9.8MB 2.8MB/s
If you've installed python3 using some different method, then you may need to install packages differently or configure your python installation in some way.

I have python 3.7.4 installed but I am unable to install dolfin package

I have python 3.7.4 installed on my computer in windows platform. I can not install dolfin package
pip install dolfin
ERROR: Could not find a version that satisfies the requirement Dolfin (from versions: none)
ERROR: No matching distribution found for Dolfin
You cannot simply install dolfin package using pip.
Check this official doc for detailed guide.
After installation you need to install these python dependencies.
pybind11 (https://github.com/pybind/pybind11)
NumPy (http://www.numpy.org)
ply (https://github.com/dabeaz/ply)
As stated in the issue #515, pip install dolfin is not possible.
You may want to check general documentation or code documentation for the installation guide.
The other answers are correct. It's currently (still) not possible to install dolfin via pip (as of 11/2021).
I want to add to the other answers, that it is also possible to install dolfin conveniently via the conda package manager: https://anaconda.org/conda-forge/fenics-dolfin
If you don't have the conda command, install Anaconda or Miniconda. Miniconda is enough, since you only need the conda command and packages dependencies will be installed automatically by conda.
Note: After the installation, I needed to execute source ~/.profile to
activate the default virtualenv in which conda is accessible.
Execute conda install -c conda-forge fenics-dolfin to install dolfin.
I don't like to install conda system-wide for this, but this way it's possible to install dolfin without building anything from source yourself. (I assume you are looking for a quick and easy way to install dolfin, since you did not ask a specific question.)

Installing VTK with pip

I'm using Python 3.7 on Arch Linux.
I've been trying to install Mayavi with pip but it always fails when installing vtk. So I found out that even when trying to install vtk by itself via pip (which should work) that vtk is really not installing. I get this error:
$ sudo pip3 install vtk
Collecting vtk
Could not find a version that satisfies the requirement vtk (from versions: )
No matching distribution found for vtk
This seems like a very dumb error on my part, but I really can't understand what's going on. VTK should be compatible with Py3 now as far as I know. pip was installed with get-pip.py and everything else has always worked perfectly.
Curiously enough, pip2 install vtk mayavi works.
Any ideas?
PS.: I'm avoiding creating a separate environment for work-related issues.
EDIT
I did the manual approach:
$ wget https://pypi.python.org/packages/13/7f/735fbc0dd78c91ad3693cfdfe5c91603899fc8e24909f935d46d2fde6559/vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl
$ sudo pip3 install vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl
vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.
Which I don't know what's causing. I've tried to follow this answer but I can't make the first pep command work.
Could not find a version that satisfies the requirement vtk (from versions: )
Among the currently released files there are no binaries for Python 2.7 and there is source code. Either you should try a different version of Python (2.7, 3.4-3.6) or compile/install VTK from sources.
vtk-8.1.0-cp27-cp27mu-manylinux1_x86_64.whl is not a supported wheel on this platform.
You're trying to install a Python 2.7 binary wheel for Python 3.7. That's impossible.
The wheel has not been published on pip yet, you can download and install one from vtk.org directly : https://vtk.org/download/
You can manually compile the VTK version packages you want and put them in the dist-Packages directory.I have a specific method.

Categories