我正在使用PyCharm为我的项目生成setup.py
文件。生成以下文件:
from setuptools import setup
setup(
name='untitled',
version='',
packages=['venv.lib.python3.6.site-packages.PyQt5', 'venv.lib.python3.6.site-packages.PyQt5.uic',
'venv.lib.python3.6.site-packages.PyQt5.uic.Loader', 'venv.lib.python3.6.site-packages.PyQt5.uic.port_v2',
'venv.lib.python3.6.site-packages.PyQt5.uic.port_v3',
'venv.lib.python3.6.site-packages.PyQt5.uic.Compiler', 'venv.lib.python3.6.site-packages.py2app',
'venv.lib.python3.6.site-packages.py2app.recipes', 'venv.lib.python3.6.site-packages.py2app.recipes.PIL',
'venv.lib.python3.6.site-packages.py2app.bootstrap', 'venv.lib.python3.6.site-packages.py2app.converters',
'venv.lib.python3.6.site-packages.py2app.apptemplate',
'venv.lib.python3.6.site-packages.py2app.bundletemplate', 'venv.lib.python3.6.site-packages.altgraph',
'venv.lib.python3.6.site-packages.macholib', 'venv.lib.python3.6.site-packages.modulegraph',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.req',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.vcs',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.utils',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.compat',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.models',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.distlib',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.distlib._backport',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.colorama',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib._trie',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.filters',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treewalkers',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treeadapters',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treebuilders',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.lockfile',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.progress',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.chardet',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.util',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.contrib',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.packages',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.packages.ssl_match_hostname',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.packaging',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.cachecontrol',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.cachecontrol.caches',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.webencodings',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.pkg_resources',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.commands',
'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.operations'],
url='',
license='',
author='',
author_email='',
description=''
)
python3.6
中的句点导致问题,因为当我运行python setup.py develop
时出现以下错误:
error: package directory 'venv/lib/python3/6/site-packages/PyQt5' does not exist
我不确定如何解决这个问题?如果我只是将python3.6
更改为python36
,则会进一步破坏所有内容。我该如何解决这个问题?
项目视图:
项目结构: