question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while installing through setup.py

See original GitHub issue

I downloaded the zip and unzipped the pattern-master folder to my system. Then I ran the python setup.py install. After a bunch of modules were installed, it halted because of the following issue:

Searching for mysqlclient
Reading https://pypi.python.org/simple/mysqlclient/
Downloading https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz#sha256=ff8ee1be84215e6c30a746b728c41eb0701a46ca76e343af445b35ce6250644f
Best match: mysqlclient 1.3.13
Processing mysqlclient-1.3.13.tar.gz
Writing C:\Users\Devesh\AppData\Local\Temp\easy_install-7x75oc6a\mysqlclient-1.3.13\setup.cfg
Running mysqlclient-1.3.13\setup.py -q bdist_egg --dist-dir C:\Users\Devesh\AppData\Local\Temp\easy_install-7x75oc6a\mysqlclient-1.3.13\egg-dist-tmp-x3s7s7bo
C:\ProgramData\Miniconda3\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
error: Setup script exited with error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib`

It seems that my system lacks some tools given there but then I am quite new to building Python modules and the like. What possibly could be the issue here?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
laasyasreecommented, Jul 2, 2019

U can solve it by installing C++ compiler and Windows SDK 8.1.

Fix is (source = Microsoft):

Open Visual Studio.
Choose File | New | Project | C++, and you will be prompted to install the necessary components.
0reactions
Sjoerd82commented, Jan 21, 2021

Related to #250. Mysql should probably not be a dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting an error in python setup.py install
I am trying to install keras using python ...
Read more >
ERROR: Can not execute `setup.py` since setuptools is not ...
I am new to python and I am trying to install the email package, but it says "setuptools is not available in the...
Read more >
[Solved] 'Python Setup.py egg_info' Failed with Error Code 1
One major cause of the command "python setup.py egg_info" failing with error code 1 is due to the missing ez_setup module in your...
Read more >
Build "can not execute setup.py since setuptools is not ...
│ exit code: 1 ╰─> [1 lines of output] ERROR: Can not execute `setup.py` since setuptools is not available in the build environment....
Read more >
subprocess-exited-with-error × python setup.py egg_info ...
However, when I try to install pygame, I get the error "subprocess-exited-with-error" and at the end it states "Microsoft Visual C++ 14.2 or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found