Rogohacks.files.wordpress.com



Getting started with Python on Windows 10 (edited 24/2/2020)1)My suggestion for Windows 10 users. I know. Bummer. Download the Python version 3.8 (or whatever latest version at the time of this writing) from the app store! I know. It’s silly. But it works.2)Actually pip is the python installer package. According to the upgrade notes on the site if you have a version higher than 3.4 pip is already preinstalled. So don’t have to worry!3)Open your terminal and type pip --help, you can then see all the commands and try some of mands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. config Manage local and global configuration. search Search PyPI for packages. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. debug Show information useful for debugging. help Show help for commands.4) Open your PowerShell terminal and then use pip freeze.# Freezing is a process where pip reads the versions of all installed packages in a local virtual environment and then produces a text file with the package version for each python package specified.PS D:\PS> pip freezeastroid==2.4.1colorama==0.4.3isort==4.3.21lazy-object-proxy==1.4.3mccabe==0.6.1pylint==2.5.2six==1.14.0toml==0.10.1wrapt==1.12.1# the above packages were installed using Anaconda 1.9.12. This is recommended starter package for all Python 3.7 ers and above# Download link: for more details on the above packages search those in These codes are usually only for code cleaning and Windows-only purposes. So it is important you download the right version of Anaconda for your OS5) Try a similar thing with pip listPS D:\PS> pip listPackage Version----------------- -------astroid 2.4.1colorama 0.4.3isort 4.3.21lazy-object-proxy 1.4.3mccabe 0.6.1pylint 2.5.2six 1.14.0toml 0.10.1wrapt 1.12.1# The IDE we will be using is VS Code. This is the most convenient as far as Windows IDEs go. # You can download VS Code from here: You can download Python interpreter extensions to help colour your code automatically. Here are a couple of commands that would be helpful for navigation in Windows PowerShell- "Set-Location "Drive:\XXXX"" in cmd will perform a change of directory- "clear" command resets the terminal- "python" simply opens the interpreter- "exit()" command closes interpreter ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download