Error: After win vscode configures the python environment, the file D:\Pros\virtuals\venvs\Scripts\Activate.ps1 cannot be loaded
Solution:
1. Run powershell as administrator
2. Enter get-ExecutionPolicy and return Restricted, indicating that the status is prohibited
3. Enter set-ExecutionPolicy RemoteSigned, reply Y, and press Enter
Note:
1. If you are not running as an administrator, an error will be reported in step 3, and access is denied.
2. Run as administrator (not unique): run powershell first, enter the command Start-Process powershell -Verb runas
Read More:
- [Solved] Error when vscode activates Python virtual environment
- VScode Run CONDA environment Error [How to Solve]
- [Solved] Pycharm Use pip Error: Script file ‘D:\Anaconda3\envs\pytorch\Scripts\pip-script.py‘ is not present
- [Solved] Error: Please select a valid Python interpreter
- Python environment error, bad interpreter: there is no file or directory
- [Solved] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter st
- How to Fix Errors encountered in executing Python scripts with command line parameters
- Python: How to Costomize the Background of PS
- [Solved] Windows Configurate Python Environment error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft
- Opencv Python realizes the paint filling function in PS, one click filling color and the possible reasons for opencv’s frequent errors
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- Python Import Error: SystemError: Parent module ‘‘ not loaded, cannot perform relative import
- VScode debug error: configured debug type ‘Python’ is not supported
- [Solved] MAC terminal Use ‘CONDA activate’ and ‘CONDA install package_ Error reported by name’ Error
- [Solved] cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\……
- [How to Solve] ERROR: Input: conda activate xxx
- [Solved] Django Configurate celery error: django.db.utils.DatabaseError
- VScode import numpy Error: DLL load failed [How to Solve]
- Autograd error in Python: runtimeerror: grad can be implicitly created only for scalar outputs
- [Solved] python-sutime Error: the JSON object must be str, bytes or bytearray, not ‘java.lang.String‘