PyCharm install module or import

The use of the module needs to be installed (downloaded) in the terminal of PyCharm (visible after creating a new project) pip3 install XX, otherwise it will prompt no module named...

Such as pip3 install xlrd    

pip3 install matplotlib #where pip3 varies according to personal settings

Note: When the module is imported and executed, the python interpreter will generate a .pyc file in the same directory as the module file in order to speed up the startup of the program. We know that python is an interpreted scripting language and .pyc is a compiled bytecode

Related Posts