当前位置:网站首页>PIP command -fatal error in launcher: unable to create process using How to resolve the error after migrating the virtual environment?
PIP command -fatal error in launcher: unable to create process using How to resolve the error after migrating the virtual environment?
2022-06-25 20:15:00 【dssgresadfsrgre】
Catalog
Two 、 Problem solving log / Search history
3、 ... and 、“ This exception is caused by the migration environment ” Solutions
One 、 background
python edition 3.8.
Because the author just started to learn python Do not understand the virtual environment , So the virtual environment is installed in a temporary folder . Now? , I want to package the virtual environment that has downloaded a large number of package libraries into another official folder , But after cutting and pasting , It is found that even if the virtual environment is activated , It doesn't work pip Instructions . See the following code for details , The environment is Windows Of cmd Black window .
(venv) D:\Program Files\python\venv38\py-cv-learning\Scripts>pip list
Here is the error log :
Fatal error in launcher: Unable to create process using '"D:\BaiduNetdiskDownload\pycharm\venv\Scripts\python.exe" "D:\Program Files\python\venv38\py-cv-learning\Scripts\pip.exe" list': ???????????The contents in parentheses before the path from above are venv( This is the name of the folder where I put the virtual environment ), It can also be seen that , This problem is probably caused by the old parameters not being changed in time due to my violent migration environment . If the virtual environment is activated normally , The contents in brackets should be py-cv-learning.
Two 、 Problem solving log / Search history
Search online 【Fatal error in launcher: Unable to create process using】, The solution for most tutorials is as follows :
(1) If the path contains Chinese , Change it ; especially Windows The system pays special attention to this problem .
(2) Update pip, Use command 【python -m pip install --upgrade】. If it is the latest version , You need to use the forced installation command 【python -m pip install --upgrade --force-reinstall pip】.
(3)repair once , I don't know the specific method , I guess it's the following picture , But it seems that this method can only repair the system python Environment ?? I don't know very well , I hope the wise readers can point out .

(4) The next article https://blog.csdn.net/m0_50796573/article/details/112697889 , The prompt may be an error caused by the migration environment , The specific reason is that pip.exe The file actually contains the absolute path left by the original virtual environment , It's no use opening it with Notepad , Because this file is a hexadecimal file , It cannot be viewed and modified normally in a natural language well known to humans . Then , The author recommended software 【HEdit】 To make changes , You need to use it 【 The telescope 】 function .
3、 ... and 、“ This exception is caused by the migration environment ” Solutions
Because in the second part of this article (4) The method given in the article in is more complicated , I changed my mind again .
Baidu search 【 Directly copy virtual environment files pip error 】, Get articles 「https://blog.csdn.net/qq_29941979/article/details/121524270」, This method is good , I just tried , Sure enough ! But I'm not like him , my pip The version is the latest , But I didn't update it after installing the lower version , Instead, you use the command directly 【python -m pip install --upgrade --force-reinstall pip】, One time forced uninstall and then install the latest version .
Here are the specific steps :
step (1): Put it in a virtual environment script Under folder activate Document and activate.dat The absolute address of the old virtual environment in the file is changed to the new address . For example, my old address is the circled part below , Change to new address 【D:\Program Files\python\venv38\py-cv-learning】. Be careful , This part of the two files , Very similar !


step (2): Activate the virtual environment in the new address , Then use the command 【python -m pip install --upgrade --force-reinstall pip】.
step (3): Last , Check to see if the problem is solved successfully , Operation instruction 【pip -V】, Found normal call to pip Version and absolute address of , Successfully solved !!!

边栏推荐
- Li-rads lesion classification reading notes
- Pta--7-20 exchange minimum and maximum (15 points)
- Jsonp processing non homologous
- Huawei HMS core launched a new member conversion & retention prediction model
- 在打新債開戶證券安全嗎?低傭金靠譜嗎
- node. JS express connect mysql write webapi Foundation
- 2.17(Avoid The Lakes)
- Avoid material "minefields"! Play super high conversion rate
- Robotium_ (clickbyid method)
- Pcl+vs2019 configuration and some source code test cases and demos
猜你喜欢

Teach you how to add custom controls to a map

Applet password input box

CG kit explore high performance rendering on mobile terminal

Log in to Huawei game with a minor account, and pop up anti addiction prompt after startup

Li-rads lesion classification reading notes

One picture to achieve the selected effect

Arduino read temperature

Wechat applet swiper simple local picture display appears large blank

<C>. tic-tac-toe

2.3 partial sum of square and reciprocal sequences
随机推荐
2.17(Avoid The Lakes)
How to understand var = a = b = C = 9? How to pre parse?
2.3 partial sum of square and reciprocal sequences
Browser performance optimization (19)
Redis core article: the secret that can only be broken quickly
SQL statement select summary
PAT B1086
Pcl+vs2019 configuration and some source code test cases and demos
Record the training process
E-commerce project environment construction
Robotium_ (clickbyid method)
How to view and explain robots protocol
Redis thread level reentrant distributed lock (different unique IDs can be locked cyclically)
Force wechat page font size to be 100%
Thymleaf template configuration analysis
2020-11-14-Alexnet
My official account writing experience sharing
Understanding C language structure pointer
Suddenly found that the screen adjustment button can not be used and the brightness can not be adjusted
PAT B1057