简体   繁体   中英

Unsure about the type of Shell Commands

If I see commands like the one shown in the following screenshot and the one appended after that, does it mean it is run in Windows Command Prompt? I'm confused because I think commands in Windows Command Prompt have > instead of $ , and it doesn't look like IPython Console shell under Spyder either.

$ pip install virtualenv
$ mkdir python-virtual-environments && cd python-virtual-environments

This what you see in Linux terminals: user@ubuntu$

and in Windows you see: C:\users\user>

You can use the pip and py, python from the command prompt if you had selected add python to system path if not you can navigate to:

Programs and Features -> Uninstall a program

Here select Python and click change and there you can select an option to add it system environment variable, if not you can do by adding the Python scripts directory to system variable.

So, coming to your concern you can always use pip and py or python in cmd of windows and terminal of Linux

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM