为了账号安全,请及时绑定邮箱和手机立即绑定

如何为我的 PyCharm Python 项目安装 yaml 包?

如何为我的 PyCharm Python 项目安装 yaml 包?

DIEA 2021-10-19 09:26:40
我将 PyCharm 2018.2.4 与 Python 3.7 一起使用。我想运行一些种子数据,所以在 Python 管理控制台中,我尝试运行我的 yaml 文件,结果出现此错误manage.py@mainpage_project > loaddata seed_databash -cl "/Users/davea/Documents/workspace/mainpage_project/venv/bin/python /Applications/PyCharm.app/Contents/helpers/pycharm/django_manage.py loaddata seed_data /Users/davea/Documents/workspace/mainpage_project"Tracking file by folder pattern:  migrations/Users/davea/Documents/workspace/mainpage_project/venv/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.  """)Traceback (most recent call last):  File "/Applications/PyCharm.app/Contents/helpers/pycharm/django_manage.py", line 52, in <module>    run_command()  File "/Applications/PyCharm.app/Contents/helpers/pycharm/django_manage.py", line 46, in run_command    run_module(manage_file, None, '__main__', True)  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 205, in run_module    return _run_module_code(code, init_globals, run_name, mod_spec)  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 96, in _run_module_code    mod_name, mod_spec, pkg_name, script_name)  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code    exec(code, run_globals)  File "/Users/davea/Documents/workspace/mainpage_project/manage.py", line 15, in <module>    execute_from_command_line(sys.argv)收集yaml  Could not find a version that satisfies the requirement yaml (from versions: )No matching distribution found for yaml如何为 PyCharm 安装 Yaml?
查看完整描述

2 回答

?
慕桂英3389331

TA贡献2036条经验 获得超8个赞

如果您想通过 Pycharm 而非终端安装任何模块。请参阅屏幕截图:-

//img1.sycdn.imooc.com//616e1f100001ba6713010399.jpg


查看完整回答
反对 回复 2021-10-19
  • 2 回答
  • 0 关注
  • 390 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信