我将 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?
添加回答
举报
0/150
提交
取消