擅长:python、mysql、java
<p>这是一个有点模糊的情况。我的解决方案是:创建一个设置.py对于您的项目(无论如何都是有益的),并且使用activated venv做一个“python”设置.py发展”。在</p>
<p>这会将您的项目添加到PTH文件中,因此您可以导入。在</p>
<p>例如设置.py,摘自互联网:</p>
<pre><code># from http://python-packaging.readthedocs.io/en/latest/minimal.html
from setuptools import setup
setup(name='funniest',
version='0.1',
description='The funniest joke in the world',
url='http://github.com/storborg/funniest',
author='Flying Circus',
author_email='flyingcircus@example.com',
license='MIT',
packages=['funniest'],
zip_safe=False)
</code></pre>