2

I am new to Python and Django and want to install mysqlclient on windows. When I use the command pip install django mysqlclient in cmd it throws this error :

File "d:\myprojects\python\mytestdjangoprj\myproject\lib\genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Please help me.

Alasdair
310k59 gold badges605 silver badges534 bronze badges
asked Nov 16, 2019 at 7:31
1
  • 2
    Make sure you are using 64 bit Python. There are wheels for the latest mysqlclient 1.4.5, so pip install mysqlclient should work today as long as you are using 64 bit Python 3.6, 3.7 or 3.8. Commented Nov 16, 2019 at 10:05

1 Answer 1

2

As Alasdair said , using 64 bit solve problem.thanks Alasdair.

answered Nov 16, 2019 at 10:39
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.