PS C:\Users\KRISH\Desktop\ven.tut> ls
PS C:\Users\KRISH\Desktop\ven.tut> pyhton
pyhton : The term 'pyhton' 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
+ pyhton
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pyhton:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\KRISH\Desktop\ven.tut> pyhton
pyhton : The term 'pyhton' 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
+ pyhton
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pyhton:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-Z plus Return to exit
>>> exit()
PS C:\Users\KRISH\Desktop\ven.tut> pip
Usage:
pip <command> [options]
Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
check Verify installed packages have compatible dependencies.
config Manage local and global configuration.
search Search PyPI for packages.
cache Inspect and manage pip's wheel cache.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
completion A helper command used for command completion.
debug Show information useful for debugging.
help Show help for commands.
General Options:
-h, --help Show help.
--isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
-v, --verbose Give more output. Option is additive, and can be used up to 3 times.
-V, --version Show version and exit.
-q, --quiet Give less output. Option is additive, and can be used up to 3 times (corresponding to
WARNING, ERROR, and CRITICAL logging levels).
--log <path> Path to a verbose appending log.
--no-input Disable prompting for input.
--proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port.
--retries <retries> Maximum number of retries each connection should attempt (default 5 times).
--timeout <sec> Set the socket timeout (default 15 seconds).
--exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup,
(a)bort.
--trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any
HTTPS.
--cert <path> Path to alternate CA bundle.
--client-cert <path> Path to SSL client certificate, a single file containing the private key and the
certificate in PEM format.
--cache-dir <dir> Store the cache data in <dir>.
--no-cache-dir Disable the cache.
--disable-pip-version-check
Don't periodically check PyPI to determine whether a new version of pip is available for
download. Implied with --no-index.
--no-color Suppress colored output
--no-python-version-warning
Silence deprecation warnings for upcoming unsupported Pythons.
--use-feature <feature> Enable new functionality, that may be backward incompatible.
--use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
PS C:\Users\KRISH\Desktop\ven.tut> pip install virtualenv
Collecting virtualenv
Downloading virtualenv-20.1.0-py2.py3-none-any.whl (4.9 MB)
|████████████████████████████████| 4.9 MB 364 kB/s
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.1-py2.py3-none-any.whl (335 kB)
|████████████████████████████████| 335 kB 469 kB/s
Requirement already satisfied: six<2,>=1.9.0 in c:\python39\lib\site-packages (from virtualenv) (1.15.0)
Collecting filelock<4,>=3.0.0
Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB)
Requirement already satisfied: appdirs<2,>=1.4.3 in c:\python39\lib\site-packages (from virtualenv) (1.4.4)
Installing collected packages: distlib, filelock, virtualenv
Successfully installed distlib-0.3.1 filelock-3.0.12 virtualenv-20.1.0
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools]
[--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools]
[--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
PS C:\Users\KRISH\Desktop\ven.tut> pip install dest
ERROR: Could not find a version that satisfies the requirement dest (from versions: none)
ERROR: No matching distribution found for dest
PS C:\Users\KRISH\Desktop\ven.tut> virtualenx dest
virtualenx : The term 'virtualenx' 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
+ virtualenx dest
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (virtualenx:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools]
[--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools]
[--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools]
[--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
PS C:\Users\KRISH\Desktop\ven.tut> pip install virtualenv
Requirement already satisfied: virtualenv in c:\python39\lib\site-packages (20.1.0)
Requirement already satisfied: filelock<4,>=3.0.0 in c:\python39\lib\site-packages (from virtualenv) (3.0.12)
Requirement already satisfied: appdirs<2,>=1.4.3 in c:\python39\lib\site-packages (from virtualenv) (1.4.4)
Requirement already satisfied: six<2,>=1.9.0 in c:\python39\lib\site-packages (from virtualenv) (1.15.0)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\python39\lib\site-packages (from virtualenv) (0.3.1)
PS C:\Users\KRISH\Desktop\ven.tut> virualenv
virualenv : The term 'virualenv' 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
+ virualenv
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (virualenv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools]
[--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
PS C:\Users\KRISH\Desktop\ven.tut> dest
dest : The term 'dest' 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
+ dest
+ ~~~~
+ CategoryInfo : ObjectNotFound: (dest:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\KRISH\Desktop\ven.tut> dest virtualenv
dest : The term 'dest' 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
+ dest virtualenv
+ ~~~~
+ CategoryInfo : ObjectNotFound: (dest:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools]
[--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv krish
created virtual environment CPython3.9.0.final.0-64 in 15450ms
creator CPython3Windows(dest=C:\Users\KRISH\Desktop\ven.tut\krish, clear=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\KRISH\AppData\Local\pypa\virtualenv)
added seed packages: pip==20.2.4, setuptools==50.3.2, wheel==0.35.1
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
PS C:\Users\KRISH\Desktop\ven.tut> kri
kri : The term 'kri' 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:2
+ kri
+ ~~~
+ CategoryInfo : ObjectNotFound: (kri:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\KRISH\Desktop\ven.tut> krish\Scripts\activate
(krish) PS C:\Users\KRISH\Desktop\ven.tut> set executionpolicy remotesigned
(krish) PS C:\Users\KRISH\Desktop\ven.tut> Set-ExecutionPolicy remotesigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy
might expose you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y
Set-ExecutionPolicy : Access to the registry key
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied. To change
the execution policy for the default (LocalMachine) scope, start Windows PowerShell with the "Run as
administrator" option. To change the execution policy for the current user, run "Set-ExecutionPolicy
-Scope CurrentUser".
At line:1 char:1
+ Set-ExecutionPolicy remotesigned
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecut
ionPolicyCommand
(krish) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import flask
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'flask'
>>> deactivate
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'deactivate' is not defined
>>> krish\Scripts\deactivate
File "<stdin>", line 1
SyntaxError: unexpected character after line continuation character
>>> krish\Scripts\activate
File "<stdin>", line 1
SyntaxError: unexpected character after line continuation character
>>> exit()
(krish) PS C:\Users\KRISH\Desktop\ven.tut> krish\Scripts\activate
(krish) PS C:\Users\KRISH\Desktop\ven.tut> deactivate
PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>> exit()
PS C:\Users\KRISH\Desktop\ven.tut> krish\Scripts\activate
(krish) PS C:\Users\KRISH\Desktop\ven.tut> import pandas
import : The term 'import' 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
+ import pandas
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(krish) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pandas'
>>> exit()
(krish) PS C:\Users\KRISH\Desktop\ven.tut> pip install sklearn
Collecting sklearn
Downloading sklearn-0.0.tar.gz (1.1 kB)
Collecting scikit-learn
Downloading scikit-learn-0.23.2.tar.gz (7.2 MB)
|████████████████████████████████| 7.2 MB 312 kB/s
Installing build dependencies ... error
ERROR: Command errored out with exit status 2:
command: 'C:\Users\KRISH\Desktop\ven.tut\krish\Scripts\python.exe' 'C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\KRISH\AppData\Local\Temp\pip-build-env-fwqk5_h6\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1'
cwd: None
Complete output (72 lines):
Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation == "CPython"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation != "CPython"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment
Collecting setuptools
Downloading setuptools-50.3.2-py3-none-any.whl (785 kB)
Collecting wheel
Downloading wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting Cython>=0.28.5
Downloading Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Collecting numpy==1.17.3
Downloading numpy-1.17.3.zip (6.4 MB)
Collecting scipy>=0.19.1
Downloading scipy-1.5.4-cp39-cp39-win_amd64.whl (31.4 MB)
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
yield
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "c:\python39\lib\http\client.py", line 458, in read
n = self.readinto(b)
File "c:\python39\lib\http\client.py", line 502, in readinto
n = self.fp.readinto(b)
File "c:\python39\lib\socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "c:\python39\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "c:\python39\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\cli\base_command.py", line 228, in _main
status = self.run(options, args)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\cli\req_command.py", line 182, in wrapper
return func(self, options, args)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\commands\install.py", line 323, in run
requirement_set = resolver.resolve(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 183, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 388, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 340, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 467, in prepare_linked_requirement
local_file = unpack_url(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 255, in unpack_url
file = get_http_url(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 129, in get_http_url
from_path, content_type = _download_http_url(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 282, in _download_http_url
for chunk in download.chunks:
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
for x in it:
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "c:\python39\lib\contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 455, in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
----------------------------------------
ERROR: Command errored out with exit status 2: 'C:\Users\KRISH\Desktop\ven.tut\krish\Scripts\python.exe' 'C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\KRISH\AppData\Local\Temp\pip-build-env-fwqk5_h6\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1' Check the logs for full command output.
(krish) PS C:\Users\KRISH\Desktop\ven.tut> dd
dd : The term 'dd' 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
+ dd
+ ~~
+ CategoryInfo : ObjectNotFound: (dd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut>
(krish) PS C:\Users\KRISH\Desktop\ven.tut> pip install sklearn
Collecting sklearn
Using cached sklearn-0.0.tar.gz (1.1 kB)
Collecting scikit-learn
Using cached scikit-learn-0.23.2.tar.gz (7.2 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 2:
command: 'C:\Users\KRISH\Desktop\ven.tut\krish\Scripts\python.exe' 'C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\KRISH\AppData\Local\Temp\pip-build-env-ikx0t4qs\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1'
cwd: None
Complete output (72 lines):
Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation == "CPython"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation != "CPython"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment
Collecting setuptools
Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting Cython>=0.28.5
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Collecting numpy==1.17.3
Using cached numpy-1.17.3.zip (6.4 MB)
Collecting scipy>=0.19.1
Downloading scipy-1.5.4-cp39-cp39-win_amd64.whl (31.4 MB)
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
yield
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "c:\python39\lib\http\client.py", line 458, in read
n = self.readinto(b)
File "c:\python39\lib\http\client.py", line 502, in readinto
n = self.fp.readinto(b)
File "c:\python39\lib\socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "c:\python39\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "c:\python39\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\cli\base_command.py", line 228, in _main
status = self.run(options, args)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\cli\req_command.py", line 182, in wrapper
return func(self, options, args)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\commands\install.py", line 323, in run
requirement_set = resolver.resolve(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 183, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 388, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 340, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 467, in prepare_linked_requirement
local_file = unpack_url(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 255, in unpack_url
file = get_http_url(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 129, in get_http_url
from_path, content_type = _download_http_url(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\operations\prepare.py", line 282, in _download_http_url
for chunk in download.chunks:
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
for x in it:
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "c:\python39\lib\contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip\_vendor\urllib3\response.py", line 455, in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
----------------------------------------
ERROR: Command errored out with exit status 2: 'C:\Users\KRISH\Desktop\ven.tut\krish\Scripts\python.exe' 'C:\Users\KRISH\Desktop\ven.tut\krish\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\KRISH\AppData\Local\Temp\pip-build-env-ikx0t4qs\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation == '"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'CPython'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'scipy>=0.19.1' Check the logs for full command output.
(krish) PS C:\Users\KRISH\Desktop\ven.tut> pip freeze > requirements.txt
(krish) PS C:\Users\KRISH\Desktop\ven.tut> pip install flask
Collecting flask
Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting itsdangerous>=0.24
Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting click>=5.1
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting Jinja2>=2.10.1
Using cached Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
Collecting Werkzeug>=0.15
Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting MarkupSafe>=0.23
Using cached MarkupSafe-1.1.1.tar.gz (19 kB)
Building wheels for collected packages: MarkupSafe
Building wheel for MarkupSafe (setup.py) ... done
Created wheel for MarkupSafe: filename=MarkupSafe-1.1.1-py3-none-any.whl size=12633 sha256=4ea8fffbe74dd1390309a18761725bb24f4c0718a7eb4999e1c28c3d7ccaf856
Stored in directory: c:\users\krish\appdata\local\pip\cache\wheels\e0\19\6f\6ba857621f50dc08e084312746ed3ebc14211ba30037d5e44e
Successfully built MarkupSafe
Installing collected packages: itsdangerous, click, MarkupSafe, Jinja2, Werkzeug, flask
Successfully installed Jinja2-2.11.2 MarkupSafe-1.1.1 Werkzeug-1.0.1 click-7.1.2 flask-1.1.2 itsdangerous-1.1.0
(krish) PS C:\Users\KRISH\Desktop\ven.tut> pip freeze > requirements.txt
(krish) PS C:\Users\KRISH\Desktop\ven.tut> pip install -r .\requirements.txt
Requirement already satisfied: click==7.1.2 in c:\users\krish\desktop\ven.tut\krish\lib\site-packages (from -r .\requirements.txt (line 1)) (7.1.2)
Requirement already satisfied: Flask==1.1.2 in c:\users\krish\desktop\ven.tut\krish\lib\site-packages (from -r .\requirements.txt (line 2)) (1.1.2)
Requirement already satisfied: itsdangerous==1.1.0 in c:\users\krish\desktop\ven.tut\krish\lib\site-packages (from -r .\requirements.txt (line 3)) (1.1.0)
Requirement already satisfied: Jinja2==2.11.2 in c:\users\krish\desktop\ven.tut\krish\lib\site-packages (from -r .\requirements.txt (line 4)) (2.11.2)
Requirement already satisfied: MarkupSafe==1.1.1 in c:\users\krish\desktop\ven.tut\krish\lib\site-packages (from -r .\requirements.txt (line 5)) (1.1.1)
Requirement already satisfied: Werkzeug==1.0.1 in c:\users\krish\desktop\ven.tut\krish\lib\site-packages (from -r .\requirements.txt (line 6)) (1.0.1)
(krish) PS C:\Users\KRISH\Desktop\ven.tut> deactivate
PS C:\Users\KRISH\Desktop\ven.tut> virtualenv --system-site-packages krish2
created virtual environment CPython3.9.0.final.0-64 in 1410ms
creator CPython3Windows(dest=C:\Users\KRISH\Desktop\ven.tut\krish2, clear=False, global=True)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\KRISH\AppData\Local\pypa\virtualenv)
added seed packages: pip==20.2.4, setuptools==50.3.2, wheel==0.35.1
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
PS C:\Users\KRISH\Desktop\ven.tut> krish2\Scripts\activate
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> pyhton
pyhton : The term 'pyhton' 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
+ pyhton
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pyhton:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import flask
>>> exit()
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> pyhton
pyhton : The term 'pyhton' 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
+ pyhton
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pyhton:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>> exit()
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> pip freeze > requirements2.txt
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello world")
hello world
>>> def function2
File "<stdin>", line 1
def function2
^
SyntaxError: invalid syntax
>>> def function1():
... print("you are in function")
File "<stdin>", line 2
print("you are in function")
^
IndentationError: expected an indented block
>>> import random
>>> random_number = random.randint(0, 1)
>>> print(random_number)
1
>>> rand = random.random() * 10
>>> print(rand)
8.980228261385639
>>> exit()
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> print(math.sqrt(225))
15.0
>>> print(math.sqrt(755555))
869.2266677915491
>>> exit()
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a = int(input("please add number of rows of stars you want to print"))
please add number of rows of stars you want to print
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''
>>> import pandas
>>> exit()
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> pyhton
pyhton : The term 'pyhton' 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
+ pyhton
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pyhton:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(math.sqrt(755555))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'math' is not defined
>>> import math
>>> print(cos(765))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'cos' is not defined
>>> exit()
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> pyhton
pyhton : The term 'pyhton' 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
+ pyhton
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pyhton:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(krish2) PS C:\Users\KRISH\Desktop\ven.tut>
(krish2) PS C:\Users\KRISH\Desktop\ven.tut>
(krish2) PS C:\Users\KRISH\Desktop\ven.tut>
(krish2) PS C:\Users\KRISH\Desktop\ven.tut>
(krish2) PS C:\Users\KRISH\Desktop\ven.tut>
(krish2) PS C:\Users\KRISH\Desktop\ven.tut>
(krish2) PS C:\Users\KRISH\Desktop\ven.tut> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(99 + 199)
298
>>> print("you are in function")
you are in function
>>>
Comments
Post a Comment