I have been trying to get a venv to activate for the last week. Currently, the errors say The module 'venv' could not be loaded. For more information, run 'Import-Module venv' but when I run that, the terminal tells me: Import-Module : The specified module 'venv' was not loaded because no valid module file was found in any module
I have virtualenv installed and updated. I have uninstalled and reinstalled both the package and Python3 trying to fix.
I have added python and the parent directory of the project to PATH. With no results. I 've been working on this for the last week and given up more then a few times with nothing. Can anyone please help me? Python version 3.10.1
Should I roll my version of python back?
PS C:\Users\Corey\Development_Cortuga\venv-test\Scripts> \venv\Scripts\activate.ps1 \venv\Scripts\activate.ps1 : The term '\venv\Scripts\activate.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
+ CategoryInfo : ObjectNotFound: (\venv\Scripts\activate.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Corey\Development_Cortuga\venv-test\Scripts> cd.. PS C:\Users\Corey\Development_Cortuga\venv-test> \venv\Scripts\activate.ps1 \venv\Scripts\activate.ps1 : The term '\venv\Scripts\activate.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
+ CategoryInfo : ObjectNotFound: (\venv\Scripts\activate.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Corey\Development_Cortuga\venv-test> venv\Scripts\activate.ps1 venv\Scripts\activate.ps1 : The module 'venv' could not be loaded. For more information, run 'Import-Module venv'. At line:1 char:1
+ CategoryInfo : ObjectNotFound: (venv\Scripts\activate.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoLoadModule
PS C:\Users\Corey\Development_Cortuga\venv-test> Import-Module venv Import-Module : The specified module 'venv' was not loaded because no valid module file was found in any module directory. At line:1 char:1
+ CategoryInfo : ResourceUnavailable: (venv:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
To solve this try next:
3.To deactivate it just enter deactivate.