How can I force PyCharm to inspect the requirements.txt file and suggest updates? I can't seem to control when this happens. Thanks!
相关问题
- XDG_RUNTIME_DIR points to non-existing path
- wxPython and PyCharm on Mac
- PyCharm referencing older, removed variable
- Pycharm Error - 'pip' is not an internal o
- Correct usage of typing types for args and kwargs?
相关文章
- pycharm上传代码到github,为什么不能指定某一个项目,而是默认上传第一个项目
- Profiling Django with PyCharm
- How to fix this strange error: “RuntimeError: CUDA
- Pycharm Edu 无法运行代码
- PygraphViz Import Error With PyCharm
- How do you edit the default `__author__ = name` li
- using stdin in pycharm [duplicate]
- Process finished with exit code -1073741819 (0xC00
I tried opening any .py file, checking Package requirements file field (Settings - Tools - Python Integrated Tools). Nothing triggered my PyCharm on Windows to detect a new dependency added to
requirements.txt
. Since the virtual environment was created with PyCharm'sAdd Local
, trying to getpip
to work for the virtual environment with a Windows command line also seemed quite a bit of work.Finally, the easiest solution that worked for me was as follows.
Click on the icon in the lower left corner. It brings up menus to
Project
,Python Console
,Structure
,TODO
, etc. FindTerminal
in it.Click on
Terminal
. It seems to be automatically virtual environment aware.pip install -r requirements.txt
Open any
.py
file afterrequirements.txt
has been changed, PyCharm will parserequirements.txt
and suggest updates, e.g. packages installation.What worked for me is configuring explicitely the
requirements.txt
in PyCharm, as described in the doc