I am trying to use the Orange3 library with the PyCharm editor in Windows 10 and after installing the packing and running code with an import statement (import Orange) I get the error:
Traceback (most recent call last):
File "C:/Users/James/PycharmProjects/Assignment1/Main.py", line 15, in <module>
import Orange
File "C:\Users\James\PycharmProjects\Assignment1\venv\lib\site-packages\Orange\__init__.py", line 9, in <module>
"pip install --no-binary Orange3") from None
ImportError: Compiled libraries cannot be found.
Try reinstalling the package with:
pip install --no-binary Orange3
When I try the suggested command in the terminal I get : "ERROR: You must give at least one requirement to install (see "pip help install")", and it is worth noting I have the most up to date version of pip.
Moreover when I go here to look for more general install instructions it says to install miniconda (which I did), and enter the command: conda create python=3 –name orange3, which for me gives:
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: orange3
I have spent some time searching, and not found anything too similar to my problem online, and any insights would be much appreciated. I would be happy to provide any additional info.
The dash ('-') should be a double dash ('--'), see Create:
conda create python=3 --name orange3
Related
I've succesfully installed Python version 3.8.1 and also PIP.
After that i want to install Pygame and Pygame Zero with the commands
pip install pygame
or
pip install pgzero
But I get the following error:
C:\>pip install pygame
Traceback (most recent call last):
File "c:\program files\python38\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python38\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python38\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable
Also with the --user command it doesn't succeed:
pip install pygame --user
or
pip install pgzero --user
What am I doing wrong here now?
I also got that problem long ago.
You can try this:
pip uninstall pygame
pip uninstall pgzrun
then download it by:
pip install pygame
pip install pgzrun
Info of your assets are little low.. But if you have Python 2 and 3, try manage your alias on CMD by checking your current python variables from /usr/bin and from CMD type "python --version" to see current default. If it says Python2.7 you can chance that with "alias" command below (reason to do that, is 2.7 support is ending 1.1.2020 and old pip for it too. So in future, you should upload new modules just for Python3.7). If you have 2.7 in your PC and you have been using it for some time, you should not try to remove it.
So just in case:
$ alias python="/usr/bin/python3.7"
Then use command
$ sudo pip3 install pygame
This should work. If not, there is some setting problems on your module site.
Give a hit with this and if it doesn't work, let us know. I can give instruction to get it to work. It requires few steps at (in my case:)
/home/usr/Python-3.7.4/Modules/Settings.
It can (I'm not sure with these modules but..) require to set SSL connection too, but it can be done from there too, without any coding.
Thank you for the quick arswers!
It is succeeded by giving the commands:
py -3 -m pip install pygame --user
py -3 -m pip install pgzero --user
The only warnings i got by installing pgzero were:
Collecting pgzero
Downloading .....
Installing collected packages: numpy, pgzero
WARNING: The script f2py.exe is installed in 'C:\Users\Han\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script pgzrun.exe is installed in 'C:\Users\Han\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.18.0 pgzero-1.2
Oh.. I didn't know, you are using Windows.. My last answer dried down with that. It was for Linux.
Either way, when you installed python, did you mark the PATH in installation process?
It shows when installation windows pops up.
I'm little noob with windows, but I expect it to be as same as in any operation systems.
If you didn't, its easier to remove Python and install it again, than try to mark the PATH after installing. After all its just 1/2 min job.
I am trying to install indexer using Jupyter notebook in Python 3.7.
pip install indexer
I am getting the following error.
Collecting indexer
Using cached https://files.pythonhosted.org/packages/c7/2f/49ea001ccc81502fe790c6077ca0cf9c4dc98ce160e1b1225a8c881b53b1/indexer-0.6.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\manorama\AppData\Local\Temp\pip-install-vs0071ok\indexer\setup.py", line 107
except OSError, ex:
^
SyntaxError: invalid syntax
----------------------------------------
Note: you may need to restart the kernel to use updated packages.
Command "python setup.py egg_info" failed with error code 1 in C:\Users\manorama\AppData\Local\Temp\pip-install-vs0071ok\indexer\
I tried various solutions like
pip install --upgrade setuptools
pip install ez_setup
But nothing is working.
How can I install the indexer package?
If you're using the 'spellchecker' library, try installing using 'pip install pyspellchecker'.
It seems that the indexer package is not compatible with Python 3. In this case you have a number of options:
Find another package that provides similar functionality.
Use Python 2 for your application.
File a bug report and hope that someone will fix the issue, or try to fix the errors in the package yourself.
Oky,
close jupyter notebook and "run administrator anaconda terminal" and try again
or
pip3 install indexer
or
python3 -m pip install indexer
I tried to install ifxpy package in windows machine but getting error
Collecting IfxPy
Could not find a version that satisfies the requirement IfxPy (from versions: )
No matching distribution found for IfxPy
I tried the following commands:
$ pip3 install IfxPy
$ pip3 install ifxPy
$ pip3 install IfxPy==3.0.3
I have downloaded wheel file and tried this command:
$ pip install IfxPy-3.0.3-cp37-cp37m-win_amd64.whl
error :- ERROR: IfxPy-3.0.3-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
Please find the error which i got after import
import IfxPyDbi
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\AmanAgrawal\AppData\Local\Programs\Python\Python37\lib\site-packages\IfxPyDbi.py", line 85, in
import IfxPy
ImportError: DLL load failed: The specified module could not be found.
Thanks in advance!!
Can you please try a manual install of IfxPy-3.0.1-cp36-cp36m-win_amd64.whl
It can be downloaded from IfxPy version 3.0.1 for windows x64
We will help you fix the real problem; meanwhile for you to proceed with the operation you are trying, as a workaround please download the IfxPy.zip from
https://github.com/OpenInformix/IfxPy/blob/master/prebuilt/3x/Win64/IfxPy.zip
and unzip it the same directory as your sample application you are trying. This should allow the sample application to work. Then to pinpoint the problem we would like to have bit more information, can you please provide output of the following from the same command window that you got error.
python -V
pip –V
pip3 –V
set PATH
Also the full error log also will help.
I am new to Python and I am trying to install pypgen.
As explained one the webpage, I first installed "samtools" (via brew install samtools as recommended).
Trying to install pypgen
I tried the 4 ways suggested by the author to install pypgen
$pip3.6 install pypgen
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/yv/n6rkh3sn5mn5qpsn87lvjw4m0000gp/T/pip-build-aQiBgg/pypgen/
$easy_install pypgen
Processing pypgen
error: Couldn't find a setup script in /Users/remi/Downloads/pypgen-0.2.1/pypgen
$pip3.6 install -e git+https://github.com/ngcrawford/pypgen.git
Could not detect requirement name, please specify one with #egg=
I downloaded "pypgen-0.2.1.tar.gz" from the pypgen website, uncompressed it, cd to the folder and did
$python setup.py install
Traceback (most recent call last):
File "setup.py", line 1, in <module>
import distribute_setup
ImportError: No module named distribute_setup
So, I did
$pip3.6 install distribute
but it did not solve the previous issue
Trying to Solve egg_info error
This egg_info error seems to be key. I tried to download this file and did
sudo python ez_setup.py
as recommended on this post but it did not solve the error messages above. I then tried
sudo pip3.6 install --upgrade setuptools
as recommended on this post but I keep receiving the same error messages when doing pip3.6 install pypgen
I am using Python 3.6 but I also have the version 2.7 installed. I tried everything with both versions (pip3.6 and pip2.7) and get the same errors. I am on MAC OS X 10.11.3
I am new to Python and I am trying to install recsys package.
http://ocelma.net/software/python-recsys/build/html/installation.html
For this i need to install some pre-requiste packages, so i have to run this using pip
pip install csc-pysparse networkx divisi2
But whenever i run this i get the following in logs
Collecting csc-pysparse
Using cached csc-pysparse-1.1.1.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\64\AppData\Local\Temp\pip-build-wn7_65_9\csc-pysparse\
setup.py", line 33
print 'setuptools module not found.'
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\i054564\
AppData\Local\Temp\pip-build-wn7_65_9\csc-pysparse\
I checked that setuptools exist in my python installation here
C:\Python34\lib\site-packages
I have ran everything from unstinalling setuptools to install it again, upgrade command, but it does not work.
Not able to figure out why setuptools is not found. Is it not found in the path of where pip resolves it from ?
cheers,
Saurav
The code triggering the error is Python 2-specific and is illegal in Python 3.
Apparently, csc-pysparse doesn't support Python 3 (its README only mentions 2.6) and looks abandoned (6 years since last commit).
Some guys out there suggest replacing it with SciPy.
The error is coming from the installation code of recsys package. In order to avoid this error, you need to install setuptools separately.
For debian machines, the below command will work.
sudo apt-get install python3-setuptools
For other machines, please checkout installation instructions at the link
Once setuptools package is installed, you can proceed with csc-pysparse installation.