Pycharm install package error - python

I'm trying to install the wxPython package using Pycharm's Project Interpreter on my mac. I have been able to install other packages in the past, but with this package I get an error:
Any ideas? I've checked, and I have both read and write permissions to both the ./pip and ./pip/http directories, and pip is up to date.

Try using homebrew instead.
Once brew is installed, just type 'brew install wxpython' in your terminal to install wxPython.

Related

how to install GEM package availble for python in GitHub?

I want to install a python package availble in GitHub (https://github.com/palash1992/GEM) named GEM (graph embedding methods). but I dont know how and from which point should I start. Can anyone give a step by step installing instruction? I dont have git on my computer. Should I have install it first? For more information I have python 3.7 version on my system.
I already tried using: pip install GEM command in cmd.
pip install git+git://github.com/palash1992/GEM.
Non of them worked.
As #Tino said, your answer could be in the GitHub readme file. Here are the instructions:
The package uses setuptools, which is a common way of installing python modules. To install in your home directory, use:
python setup.py install --user
Just copy and paste the above line into your command prompt and you should be fine.

Error on installing pywin32 modul for python 2.7

I`m disparately trying to install win32.client which I know is a part of pywin32 module.
I have tried with:
pip install
pip install and downloaded different versions of .whl files
.zip install from cmd (see pics bellow)
My version of python is : Info of my python version
When I tried with pip install:
I get this error
When I tried with pip install and downloaded .whl file:
I get this error
When I tried with .zip file:
enter image description here
Do someone has any ideea why is not working ?
I also uninstalled python and installed again
I suggest you uninstall from pip and install with the .exe installer from the official repository.
This has always worked for me. Remember to select the right version for your version of python.
You may try installing with:
conda install -c anaconda pywin32
But from the warning;
You can upgrade to a newer version of Python to solve this.
I would upgrade to python 3 and try again.

Install Python module easygui on Ubuntu 16.04 without Pip or setup.py

I am new to Ubuntu coming from Windows. I need to install the easygui Python module but the version currently on PyPI has issues. The previous release 0.97 is fine. Using pip install easygui installs 0.98. I can download the 0.97 library from SourceForge and I want to install it on Ubuntu 16.04. The download does not have a setup.py file (which I get how to use to install libraries). In Windows I could copy the easygui.py file to the Libs directory and call the module. Where do I put this file in Linux 16.04? The file structure is confusing for me.
You can use pip to specify the version of the module you would like to install:
pip install easygui==0.97
You could also tack on the flag --force-reinstall if you run into trouble with the module being installed already.
as a side note: This might be a good time to start using virtual environments.
If you have easy_install working, you could try:
"sudo easy_install easygui"
or if you want to specify the location or if you do not have the root privileges:
"easy_install --install-dir=here-some-folder-where-to-install easygui"
If you want to install some specific version of the tool with the easygui, perhaps this post helps:
Install particular version with easy_install
At least "sudo easy_install easygui==0.97" worked for me.

mac two version python conflict

I installed python3.5 on my mac, its installation was automatically. but these days i found there was already python2 on my mac and every module i installed through pip went to /Library/Python/2.7/site-packages.
I find python3 installed location is /Library/Frameworks/Python.framework/Versions/3.5
Now download a mysql-connector-python and installed it, install location is python2.7/site-packages, when i open pycharm whose default interceptor is python3.5, hence i can not use mysql-connector, so is there any body who know this question?
for mysql-connector installation problem, i found the solution:
Try go to python3 bin directory and find pip method. this pip method can be override by the system python2 pip command, so if you want to install MySQL-python module to python3.x site-packages, you should cd to such bin directory and ./pip install MySQL-python, it can download such module successfully but installed error:ImportError:No module named 'ConfigParser', I google such error and find there is no such module in python3 and we can get its fork version:mysqlclient.
NOTE: In order not to be conflict with system default python2 pip command, cd and go to python3 bin directory and ./pip install mysqlclient and succeed.

Installing requests-kerberos on Windows

Is there any way to install requests-kerberos on Windows?
When I try to install it with pip I have the following error:
py -m pip install requests-kerberos
ImportError: No module named 'commands'
Command "python setup.py egg_info" failed with error code 1 in C:\Users\user1\AppData\Local\Temp\pip-build-n8s_inn\kerberos
I would be grateful if anyone knew another kerberos module. I'm using Python 3.4 and Windows 8.
Best regards.
The commands module was deprecated in python 2.6.
Thus, the issue appears to be a problem with your pip installation, and not with requests-kerberos.
There are a few things you can try, but I would focus on ensuring pip is working correctly. While you could install the package manually, you are really just pushing the pip problem down the road until the next time you install a package.
Ensure pip is installed correctly.
Use the pip command to ensure you are running pip in the python 3.4 context: (Note, this is my output, yours will be different because you are on Windows and running 3.4)
$ pip --version
pip 1.5.6 from /Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7)
Additional information about pip can be found here.
Download and install manually
Download the package manually from the pypi repo.
Download the .tar.gz
Extract the tar.gz and run python setup.py install

Categories

Resources