W
W
Winfell2020-05-05 23:25:52
Python
Winfell, 2020-05-05 23:25:52

Problem with importing and using modules in 'Pycahrm'?

Hello everyone! I recently decided to try "Python" and ran into a problem using modules in "Pycharm", now I will describe everything in more detail.
I wanted to try writing a bot for discord. I usually went to the console and ordered pip install discord.py
to install the module, he installed it, but when I write "import discord" in pycharm, it does not highlight the module, but from the possible options it shows 5eb1cab2a79df460282991.jpeg
just a whole folder. and this is not only a problem with this module, but in principle, no matter what module I try to use, it offers only "whole folders" if I may say so. I thought that the problem is in Pycharm itself, but I doubt it ... Tell me what I'm doing wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-05-06
@Winfl

It's not about PyCharm. You need to create a virtual environment for your project and install modules in it already. Google "PyCharm venv".
The IDE needs to know where to pull modules from.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question