安装了哪些软件包?

时间:2018-11-12 06:37:53

标签: python-3.x

我是Python的新手。

我正在使用winpython3winspyder3。如何检查安装了哪些软件包,模块和插件? 我什么都没找到。 感谢您的回答...但是... @Vineeth Sai:我正在使用winspyder3,出现以下错误:

Start of code
    pip freeze
    The following command must be run outside of the IPython shell:

     $ pip freeze

The Python package manager (pip) can only be used from outside of IPython.
Please reissue the `pip` command in a separate terminal or command prompt.
See the Python documentation for more information on how to install packages:
        https://docs.python.org/3/installing/
End of Code        

@ Rajeev Atmakuri: 使用您链接的代码,我得到以下输出:

Start of code:
runfile('D:/Python/packages_001.py', wdir='D:/Python')
Traceback (most recent call last):

  File "<ipython-input-6-a7b650970979>", line 1, in <module>
    runfile('D:/Python/packages_001.py', wdir='D:/Python')

  File "C:\WPy-3662\python-3.6.6.amd64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 668, in runfile
    execfile(filename, namespace)

  File "C:\WPy-3662\python-3.6.6.amd64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "D:/Python/packages_001.py", line 9, in <module>
    installed_packages = pip.get_installed_distributions()

AttributeError: module 'pip' has no attribute 'get_installed_distributions'
End of code

: 如果您知道八度:with

start of code:
    pkg list
end of code

您将获得已安装软件包的完整列表...

0 个答案:

没有答案