I'm trying to connect to a mySQL server through python on a MacBook Pro, and I need to pip install mysql to continue. However when I run that command I get the following error:
ModuleNotFoundError: No module named 'ConfigParser'
---------------------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jc/cn0mjt8s13jfb9w3f42qy27c0000gn/T/pip-install-viy629s3/MySQL-python/
Any ideas on how to get pass this would be greatly appreciated.
Related
I am trying to install toolbox and it shows the below error. I already updated the setup-toolbox but I still get this error. Any help will be highly appreciated.
While installing toolbox from pycharm it shows this error:
FileNotFoundError:No such file or directory: 'C:\\Users\\abc\\AppData\\Local\\Temp\\pycharm-packaging\\toolbox\\setup.py'
Installing via command line it show:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\abc\AppData\Local\Temp\pip-install-j5ja0k9r\toolbox\.
Try upgrading the console:
pip install -U jupyter_console
You can also download manually from here
I am trying to install the pymssql module in the Command Prompt for VS 2017 Command line and when I type
pip install pymssql
I get this error
cl: error: no such option: -I
Here is the more defined error code:
cl: error: no such option: -I
error: command 'C:\Users\blake\AppData\Local\Programs\Python\Python37-32\Scripts\cl.exe'
failed with exit status 2
On Windows, please follow the instructions on
https://learn.microsoft.com/en-us/sql/connect/python/pymssql/step-1-configure-development-environment-for-pymssql-python-development?view=sql-server-2017
i. e.: Download the wheel-file, place it in the same folder where the python.exe is, move to that folder and run
pip install pymssql-2.1.3-cp36-cp36m-win_amd64.whl
Having troubles installing geopandas into python using "pip install geopandas" which is returning "Command “python setup.py egg_info” failed with error code 1 when installing..." error.
I am using python 2.7.14.
I am trying to install kenlm for Python with the following command:
pip install https://github.com/kpu/kenlm/archive/master.zip
At that time I found the following error:
error: command 'C:\\Users\\PhyuKhaing\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status2
How can I solve that problem?
I'm getting a strange linker error that I don't completely understand while attempting to install postgresql on OSX.
I've installed Postgres via Brew and now I'm trying to get my Django app up and running. I've added the postgres directory to my path. I'm running OSX Yosemite.
When I run the following command:
pip install psycopg2
I get this error:
ld: illegal text reloc in '_init_psycopg' to '_lobjectType' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
I'm at a loss where to go from here and my searches for this type of error has lead me no where. Any help would be amazing.
Thanks.
Turns out I had a couple versions of Postgres installed. I had to remove the old one and make sure the pg_config that was found in the PATH was the most recent one. As soon as I made sure the pg_config was the proper one, this error went away.