No matching distribution found for pptk in anaconda - python-3.x

I am trying to install pptk in an anaconda environment by
pip install pptk
But everytime it returns the same error
ERROR: Could not find a version that satisfies the requirement pptk (from versions: none)
ERROR: No matching distribution found for pptk
I tried installing from the .whl file that results from building pptk from source following this instruction, but in this case I am stuck with
cmake -G "NMake Makefiles" <build folder>
The cmake error is as following
CMake Error: Could not create named generator NMake Makefiles
Although I was not succeeded in installing in any of the created anaconda environment, I was able to install pptk in the base. Would be much of help to know what else i can try to install pptk in anaconda environments.
I am using python 3.8, Ubuntu 20.04, and anaconda 3
Thanks in advance!

This is because pptk has not released a version that is compatible for python 3.8, it can currently only support python 3.7

pptk has not released a version for python 3.8 yet, you will have to use python 3.7 or wait

Related

IfxPy installation fails

I have the same problem.
C:>pip install IfxPy ERROR: Could not find a version that satisfies the requirement IfxPy (from versions: none) ERROR: No matching distribution found for IfxPy
It was working on Python2.7 but now I have Python3.8.6 installed and I can't use IfxPy. I tried to install using pip and directly with "python setup.py install" on the zip file without success. Can you help me?
C:>python -V Python 3.8.6
C:>pip -V pip 20.2.3 from c:\python 3.8\lib\site-packages\pip (python 3.8)
C:>pip3 -V pip 20.2.3 from c:\python 3.8\lib\site-packages\pip (python 3.8)
C:>set PATH Path=C:\Python 3.8\Scripts;C:\Python 3.8;C:\Python27;C:\Python27\Scripts;C:\Program Files\ibm\gsk8\lib64;C:\Program Files\ibm\gsk8\bin;C:\Program Files\Informix Client-SDK;C:\ProgramData\Oracle\Java\javapath;C:\Oracle806\bin;C:\Progra~1\Oracle\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Python27;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\SysWOW64;C:\Users\p054007\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Users\p054007\AppData\Local\Programs\Python\Python38-32;C:\Oracle806\bin;C:\Progra~1\Oracle\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Python27;C:\Users\p054007\AppData\Local\Microsoft\WindowsApps;C:\Python27\Scripts;C:\Users\p054007\AppData\Local\Microsoft\WindowsApps;
set PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
The latest release of IfxPy (currently 3.0.3 provides only wheels for 64-bit Python 3.7 for Windows and 64-bit Python 3.8 for Linux.
Install it with 64-bit Python 3.7 for Windows. Or compile from sources.

Could not find a version that satisfies the requirement MetaTrader5

I am trying to install a python package MetaTrader5 using the command
python3 -m pip install MetaTrader5
and I have even tried
pip install MetaTrader5
But it throws the following error
ERROR: Could not find a version that satisfies the requirement MetaTrader5 (from versions: none)
ERROR: No matching distribution found for MetaTrader5
I am using
Ubuntu 16.04.6
Python 3.6.10
can someone help with this?
I have a mac. On it I have conda installed on MacOS. In addition I have a virtual machine running windows and I have also installed conda on Windows. I could install MetaTrader5 package using pip on the virtual machine but not on MacOS.
According to this Youtube video, MetaTrader5 currently doesn't support Ubuntu. It's only available on Windows.
If you look at Pypy and view the wheel files, you will see that all the builds are for Windows. pip is refusing to install because it can't find a Mac or Linux version.
https://pypi.org/project/MetaTrader5/5.0.37/#files
Download python version 3.10.0 then try installing metatrader5.
here the link: https://www.python.org/downloads/release/python-3100/
Metatrader 5 for Python, only work in exact versions:
Install one of version below to MT5 works.
Python Versions for Metatrader5

How to install vtk for python in windows-10 via pip?

I tried installing vtk via pip as "pip install vtk" but it returned an error as below.
ERROR:
Could not find a version that satisfies the requirement vtk (from
versions: none)
ERROR:
No matching distribution found for vtk"
How do I solve it?
vtk 8.1.2 provides only 64-bit releases and no source code. Your Python is 32-bit. To install vtk you need to upgrade to 64-bit Python.

CPLEX and Anaconda Python integration error on MacOS

I installed Anaconda 1.9.7, the Python version is 3.7.3. Then used
conda install -c ibmdecisionoptimization cplex
and
pip install cplex
However, I face this error:
No module named 'docplex'.
There is nothing on the net for solving this error of integrating CPLEX and Anaconda Python for Mac and Anaconda.
The problem was that docplex wants to install docloud and that there was no python 3.7 distribution for docloud. This is now fixed. See https://github.com/IBMDecisionOptimization/docplex-examples/issues/18

Error while installing psycopg2 in Windows

I tried to install psycopg2 as:
pip install psycopg2
It was giving error for pg_config. I checked some stackoverflow notes and installed PostgreSQL. Added the path of pg_config in $PATH.
Now it is giving the below error:
LINK : fatal error LNK1181: cannot open input file 'libpq.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181
Any help on this?
Have you tried reinstall without pip?
sudo apt-get install python3-psycopg2
EDIT: Since you're on windows:
You can try this if you're using python 2.7:
pip uninstall psycopg2
pip install git+https://github.com/nwcell/psycopg2-windows.git#win64-py27#egg=psycopg2
If you're using python 3.4:
pip uninstall psycopg2
pip install git+https://github.com/nwcell/psycopg2-windows.git#win64-py34#egg=psycopg2
More info here.
If you prefer, you can download the installer (.exe) and install it.
You can find it here.
I found the issue.... I was using Python 3.7 version. Looks like the latest stable version of psycopg2 (2.7.4) is not yet supported on Python 3.7. It is supported till 3.6
I downgraded my python to 3.6.5 in Anaconda and also to 2.7.15 through PyCharm. I was able to install psycopg2 in both and use them.
Go to https://pypi.org/project/psycopg2
in release history and select the version you want to download.
There will be a table with files and the versions of python that can be compatible with the selected version.
Now download the wheel file that matches your system configuration(mac/linux/win-32/win-64)
I did this and was able to download the package.
For windows10(64-bit), download psycopg2-2.7.7-cp36-cp36m-win_amd64.whl (998.5 kB), in case you have selected 2.7.7
For Windows users, to install the psycopg2 without any errors first install Python 3.7.4 version and then install psycopg2 using command pip install psycopg2 as it worked complete fine with me. I think there is some issue in Python 3.8.0 version onwards because while installing psycopg it is showing an error in setup wheels.
In case you are here in 2020, this is a problem with version 3.8 of python. I had the issue recently. Try using virtualenv so that you can use lower versions of python in your workspace until psycopg2 is supported fully on Python version 3.8

Resources