S
S
Sergey2021-07-22 18:35:14
pip
Sergey, 2021-07-22 18:35:14

How to put a module for Python on windows?

I started to master python, installed it on Windows: python + paycharm.
I started writing a connection to mysql, but there is a code - library import. On centos - this is understandable - I installed it through the console.
How to solve it on Windows? (while I'm digging to the side - that somewhere I need to download the module and copy it somewhere to the settings)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Developer, 2021-07-22
@oldzas

pip install

S
Sergey, 2021-07-22
@oldzas

I installed the pipe, installed the muscle library, rebooted.
I write the first line of code: import pymysql - I run it, writes to oshkubu:

Traceback (most recent call last):
  File "C:\Users\User\PycharmProjects\pythonProject1\main.py", line 3, in <module>
    con = pymysql.connect('localhost', 'user17',
TypeError: __init__() takes 1 positional argument but 5 were given

What didn't I do?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question