我有一个python project-A,并从中制作了一个whl分发文件。我应该在项目B中使用项目A。因此,在项目B的虚拟环境中,我已经安装了项目A,并且可以在env / lib / site-packages中看到项目A,并且我还可以在“ {{1} }”。
但是当我尝试从项目A引用代码时,从项目B的应用程序代码中,我得到了pip freeze
。
这是点子冻结的响应:
unresolved reference issue
“ mindsphere-core == 0.1.0”是此处的项目A。
(env) D:\python_workspace_31dec\mindsphere-sdk-python-clients>pip freeze
alabaster==0.7.12
Babel==2.6.0
bleach==3.1.0
certifi==2018.11.29
chardet==3.0.4
colorama==0.4.1
coverage==4.5.1
docutils==0.14
filelock==3.0.10
idna==2.8
imagesize==1.1.0
Jinja2==2.10
MarkupSafe==1.1.0
mindsphere-core==0.1.0
packaging==18.0
pkginfo==1.5.0.1
pluggy==0.8.1
py==1.7.0
Pygments==2.3.1
pyparsing==2.3.0
pytz==2018.9
readme-renderer==24.0
requests==2.21.0
requests-toolbelt==0.8.0
six==1.12.0
snowballstemmer==1.2.1
Sphinx==1.8.1
sphinxcontrib-websupport==1.1.0
toml==0.10.0
tox==3.5.2
tqdm==4.29.0
twine==1.12.1
urllib3==1.24.1
virtualenv==16.2.0
webencodings==0.5.1
我当前的工作目录是:
sys.path gives me the below response:
['D:\\python_workspace_31dec\\mindsphere-sdk-python-clients\\timeseries', 'D:\\python_workspace_31dec\\mindsphere-sdk-python-clients\\env\\Scripts\\python37.zip', 'D:\\python_workspace_31dec\\mindsphere-sdk-py
thon-clients\\env\\DLLs', 'D:\\python_workspace_31dec\\mindsphere-sdk-python-clients\\env\\lib', 'D:\\python_workspace_31dec\\mindsphere-sdk-python-clients\\env\\Scripts', 'C:\\Users\\z003wcwj\\AppData\\Local\
\Programs\\Python\\Python37-32\\Lib', 'C:\\Users\\z003wcwj\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs', 'D:\\python_workspace_31dec\\mindsphere-sdk-python-clients\\env', 'D:\\python_workspace_31dec\\
mindsphere-sdk-python-clients\\env\\lib\\site-packages']