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.
Related
I want to create a user path to install packages installed by pip or pip3 for python 3.7.2, for that, I noticed that C:\Users\VVK\AppData\Roaming\Python\Python37\site-packages by py -m site --user-site and,
I wish to update it by C:\Users\VVK\AppData\Roaming\Python37\Scripts, How is this possible?
I am using Microsoft Windows 10 64-bit.
Python37\site-packages is used to install libraries while Python37\Scripts is used to install programs. The latter should not be used for package installation. Packages when installed should install their programs (executable scripts) into Python37\Scripts themselves.
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.
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.
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
I am trying to install scrapy on Windows XP (32bit) virtualenv:
pip install scrapy
The installer spits out this ambiguous error message:
error: Only found improper OpenSSL directories: ['E:\\cygwin', 'E:\\Program Files\\Git']
How should I configure openssl / pyOpenSSL to make pip work?
Apparently pyopenssl installation expects the binaries and libs to be laid out exactly as installed by OpenSSL windows binaries. Installing it from there (and not using cygwin's openssl for example), and adding the bin directory to the path solved this issue.
Installing the newest package from that site with the default settings didn't work me. It seems to look for openssl.exe in your PATH and then look for the libraries in its parent directory. A quick fix is to find wherever openssl.exe got installed and add the directory to your path. For me it was:
set path=%path%;C:\OpenSSL-Win32\bin
I had the following problem trying to install pyOpenSSL using pip: Setup script exited with error: Unable to find vcvarsall.bat
After updating the setuptools (pip install -U setuptools), the pip install worked. I did not have to install any binaries manually.