Skip to content

Error while installing through setup.py #245

Open

Description

@dsaw

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?

Activity

  1. ZER-0-NE commented on Aug 25, 2018

    @ZER-0-NE

    I am assuming you are using Windows, you can try with pip and see if it works out.
    I got the same error on Ubuntu, using sudo apt-get install libmysqlclient-dev resolved my issue. Try instaling the libmysqlclient on your system.
    Here's more on the error you encountered.

  2. dsaw commented on Aug 25, 2018

    @dsaw
    Author

    @ZER-0-NE Yes, it is Windows.
    I did try to install through pip but failed due to the issue in Python 3. I will install mysql.
    Thank you!

  3. abhijithneilabraham commented on Apr 14, 2019

    @abhijithneilabraham

    For issues in installing mysqlclient in macos, install separately using

    brew install mysqlclient
    
  4. laasyasree commented on Jul 2, 2019

    @laasyasree

    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.
    
  5. Sjoerd82 commented on Jan 21, 2021

    @Sjoerd82

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions