我已经创建了一个基本的Flask项目,但是当我创建一个虚拟环境时,有大量的库与Project Interpreter中列出的依赖项无关。
当我运行“点冻结”时,这些都是项目中的所有依赖项。我想念什么?我很确定这少数几个库没有以下所有依赖项。我想念什么? BeautifulSoup==3.2.1CacheControl==0.11.5DateTime==4.0.1Django==1.8.3Flask==0.10.1Jinja2==2.8MarkupSafe==0.23Pillow==2.9.0Pygments==2.0.2Pyro4==4.38Twisted==13.2.0Werkzeug==0.10.4altgraph==0.10.2appnope==0.1.0azure==0.11.1backports.ssl-match-hostname==3.4.0.2bdist-mpkg==0.5.0bonjour-py==0.3boto==2.38.0bz2file==0.98certifi==2015.9.6.2chardet==2.3.0contextlib2==0.4.0decorator==4.0.2djangorestframework==3.1.3elasticsearch==1.5.0elasticsearch-dsl==0.0.4funcsigs==0.4functools32==3.2.3.post2funcy==1.5future==0.15.2futures==3.0.3gensim==0.12.0gnureadline==6.3.3ijson==2.1incf.countryutils==1.0ipykernel==4.0.3ipython==4.0.0ipython-genutils==0.1.0ipywidgets==4.0.2itsdangerous==0.24joblib==0.8.4jsonschema==2.5.1jupyter==1.0.0jupyter-client==4.0.0jupyter-console==4.0.2jupyter-core==4.0.5langid==1.1.4.dev0lockfile==0.10.2macholib==1.5.1matplotlib==1.4.3mistune==0.7.1mock==1.3.0modulegraph==0.10.4natsort==4.0.3nbconvert==4.0.0nbformat==4.0.0nltk==3.0.2nose==1.3.7notebook==4.0.4numexpr==2.4.4numpy==1.8.0rc1pandas==0.16.2path.py==8.1.1pbr==1.8.0pexpect==3.3pickleshare==0.5ptyprocess==0.5py2app==0.7.3pyLDAvis==1.3.0pyOpenSSL==0.13.1pycountry==1.12pyobjc-core==2.5.1pyobjc-framework-Accounts==2.5.1pyobjc-framework-AddressBook==2.5.1pyobjc-framework-AppleScriptKit==2.5.1pyobjc-framework-AppleScriptObjC==2.5.1pyobjc-framework-Automator==2.5.1pyobjc-framework-CFNetwork==2.5.1pyobjc-framework-Cocoa==2.5.1pyobjc-framework-Collaboration==2.5.1pyobjc-framework-CoreData==2.5.1pyobjc-framework-CoreLocation==2.5.1pyobjc-framework-CoreText==2.5.1pyobjc-framework-DictionaryServices==2.5.1pyobjc-framework-EventKit==2.5.1pyobjc-framework-ExceptionHandling==2.5.1pyobjc-framework-FSEvents==2.5.1pyobjc-framework-InputMethodKit==2.5.1pyobjc-framework-InstallerPlugins==2.5.1pyobjc-framework-InstantMessage==2.5.1pyobjc-framework-LatentSemanticMapping==2.5.1pyobjc-framework-LaunchServices==2.5.1pyobjc-framework-Message==2.5.1pyobjc-framework-OpenDirectory==2.5.1pyobjc-framework-PreferencePanes==2.5.1pyobjc-framework-PubSub==2.5.1pyobjc-framework-QTKit==2.5.1pyobjc-framework-Quartz==2.5.1pyobjc-framework-ScreenSaver==2.5.1pyobjc-framework-ScriptingBridge==2.5.1pyobjc-framework-SearchKit==2.5.1pyobjc-framework-ServiceManagement==2.5.1pyobjc-framework-Social==2.5.1pyobjc-framework-SyncServices==2.5.1pyobjc-framework-SystemConfiguration==2.5.1pyobjc-framework-WebKit==2.5.1pyparsing==2.0.1python-dateutil==1.5pytz==2013.7pyzmq==14.7.0qtconsole==4.0.1requests==2.6.0scikit-bio==0.4.0scipy==0.16.0serpent==1.11simplegeneric==0.8.1simserver==0.1.4
最佳答案
我正在终端中运行pip冻结,以便PyCharm认为正在运行虚拟环境。我发现这篇文章有助于在Pycharm How do I activate a virtualenv inside PyCharm's terminal?中使用virtualenv
关于python - Pycharm包含太多库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33904622/