PyCharm doesn't recognise installed module

前端 未结 14 2300
闹比i
闹比i 2020-12-03 06:55

I\'m having trouble with using \'requests\' module on my Mac. I use python34 and I installed \'requests\' module via pip. I can verify this via running installation again an

14条回答
  •  盖世英雄少女心
    2020-12-03 07:30

    In my case the packages were installed via setup.py + easy_install, and the they ends up in *.egg directories in site_package dir, which can be recognized by python but not pycharm.

    I removed them all then reinstalled with pip install and it works after that, luckily the project I was working on came up with a requirements.txt file, so the command for it was:

    pip install -r ./requirement.txt

提交回复
热议问题