I cannot use Django - python

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?

Related

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

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

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

starting a website project in python and django in windows 10

Whenever I type django-admin start project project name the console returns Django-admin : The term 'Django-admin' 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
Django-admin start project emart
+ CategoryInfo : ObjectNotFound: (Django-admin:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException.
The correct syntax is $ django-admin startproject mysite
Also, make sure to have the Python envirovment you want to use (the one with Django installed) active
Check the official documentation for Django

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