"env\scripts\activate.bat : The module 'env' could not be loaded." - python

PS C:\Users\EMCEE\Downloads\iPLM\iPLM_web> env\scripts\activate.bat
env\scripts\activate.bat : The module 'env' could not be loaded. For more information, run 'Import-Module env'.
At line:1 char:1
+ env\scripts\activate.bat
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (env\scripts\activate.bat:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoLoadModule

For PowerShell, you should use the activate.ps1 file instead of the activate.bat. Something like below should work:
. .\env\Scripts\activate.ps1

Related

I got error when start Anaconda command prompt

I open Anaconda Powershell Prompt. I got error message as below.
Invoke-Expression : External component has thrown an exception.
At C:\Users\xxx\Anaconda3\shell\condabin\Conda.psm1:107 char:9
+ Invoke-Expression -Command $activateCommand;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-Expression], SEHException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.SEHException,Microsoft.PowerShell.Commands.InvokeExpressi
onCommand
How I can fix this error? Please supporting me.

Scrapyrt error after install scrapyrt is not recognized as a command

I am new to scrapy and trying to use scrapyrt to follow a udemy course. Why am I getting the following error when trying to start scrapyrt as it says in the docs.
scrapyrt : The term 'scrapyrt' 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
+ scrapyrt
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (scrapyrt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I installed scrapyrt the way it says to in the docs but when I try to run it in my terminal I get this error. I looking for it to start an endpoint for my scrapy spider.
scrapyrt : The term 'scrapyrt' 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
+ scrapyrt
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (scrapyrt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

I am trying to install a new library, but get errors with patch installation

Following instruction on this website: https://pysptools.sourceforge.io/installation.html
I get the following errors in the anaconda prompt window:
(spectral_environment) PS PATH\miniconda3\envs\spectral_environment\Lib\site-packages\lightgbm> patch -b < lightgbm_2.1.2_sklearn.patch
At line:1 char:10
+ patch -b < lightgbm_2.1.2_sklearn.patch
+ ~
The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported
so i tried this
(spectral_environment) PS PATH\miniconda3\envs\spectral_environment\Lib\site-packages\lightgbm> patch -b lightgbm_2.1.2_sklearn.patch
patch : The term 'patch' 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
+ patch -b lightgbm_2.1.2_sklearn.patch
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (patch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
And got a different error. This is probably really obvious, but ive no idea. Could the PySp tools documentation be out of date with my version of anaconda? Has anaconda changed that much?
What am I doing wrong?
Thanks

I cannot use Django

I want to use Django. I installed it but after that I wanted to create file and I got this error.
django-admin.exe startproject mysite .
django-admin.exe : The term 'django-admin.exe' 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 wa
s included, verify that the path is correct and try again.
At line:1 char:2
+ django-admin.exe startproject mysite .
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (django-admin.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
what is the problem?

I'm getting a VSCode python error, does anyone know why?

& : The term 'usr/local/bin/python3' 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:3
+ & usr/local/bin/python3 "c:/Users/Syed Subhan Shakir/Downloads/Spring ...
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (usr/local/bin/python3:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
What is this? I haven't changed anything since it last run

Categories

Resources