简体   繁体   中英

python scripts folder is empty

自定义安装

pip 文件夹丢失

pip was selected while installing,but when i checked scripts folder,the folder was empty since scripts are missing i cannot use pip cammand on terminal,new to programming please help me!!!

i tried installing pip this particular error showes up!!

FOR WINDOWS ONLY

  1. open cmd.

  2. then type pip help , if pip is installed then a message would come explaining how to use it else an error message stating that the program is not found.

  3. then type python and see whether that's installed properly, if you receive this Python is not recognized as an internal or external command, operable program or batch file then this means that python is not installed on your system and you need to reinstall it. Or if it is installed properly then you would get something like this

     Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
  4. to install pip download this pip install and then open your cmd in that folder where you have installed it by using the cd command(like if you have installed it in downloads you should type in the cmd cd Downloads ), then type this python get-pip.py .

  5. And this should have installed pip on your system. (see step 1 to see if it works)

  6. Then just upgrade pip and you are good to go, you can upgrade pip by python -m pip install --upgrade pip

  7. Then try installing a module like pip install tksplash in the cmd.

FOR LINUX ONLY

  1. open your terminal and type sudo apt install python3-pip (works only on debian based disrtos like -: Ubuntu,Kali, Parrot))
  1. you have not install any pip packages.
  2. you can install new one, then refresh dir.
pip install Flask

Installing Anaconda will be better option. It has all packages required. get-pip.py needs to be downloaded and run python get-pip.py.

Use Python 3.10, it installs pip properly out of the box.

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