During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 342, in run prefix=options.prefix_path, File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 778, in install requirement.uninstall(auto_confirm=True) File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 754, in uninstall paths_to_remove.remove(auto_confirm) File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_uninstall.py", line 115, in remove renames(path, new_path) File "C:\ProgramData\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 267, in renames shutil.move(old, new) File "C:\ProgramData\Anaconda3\lib\shutil.py", line 556, in move rmtree(src) File "C:\ProgramData\Anaconda3\lib\shutil.py", line 494, in rmtree return _rmtree_unsafe(path, onerror) File "C:\ProgramData\Anaconda3\lib\shutil.py", line 389, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\ProgramData\Anaconda3\lib\shutil.py", line 387, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\idna\\codec.py' You are using pip version 9.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(base) C:\Users\Ravi>pip install --upgrade kiteconnect
Collecting kiteconnect
Using cached https://files.pythonhosted.org/packages/e9/74/5354c5845ae4108329b19d08089113fd5dde8ce63c9639907f622086aef6/kiteconnect-3.7.4.tar.gz
Collecting requests>=2.18.4 (from kiteconnect)
Using cached https://files.pythonhosted.org/packages/ff/17/5cbb026005115301a8fb2f9b0e3e8d32313142fe8b617070e7baad20554f/requests-2.20.1-py2.py3-none-any.whl
Requirement already up-to-date: six>=1.11.0 in c:\programdata\anaconda3\lib\site-packages (from kiteconnect)
Collecting pyOpenSSL>=17.5.0 (from kiteconnect)
Using cached https://files.pythonhosted.org/packages/96/af/9d29e6bd40823061aea2e0574ccb2fcf72bfd6130ce53d32773ec375458c/pyOpenSSL-18.0.0-py2.py3-none-any.whl
Requirement already up-to-date: enum34>=1.1.6 in c:\programdata\anaconda3\lib\site-packages (from kiteconnect)
Collecting python-dateutil>=2.6.1 (from kiteconnect)
Using cached https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl
Requirement already up-to-date: autobahn[twisted]>=17.10.1 in c:\programdata\anaconda3\lib\site-packages (from kiteconnect)
Collecting pypiwin32<=220 (from kiteconnect)
Using cached https://files.pythonhosted.org/packages/d0/f7/56e35902d32299020cf9136264ca102ff0b03c0555621b469c825bc10d08/pypiwin32-220-cp36-none-win_amd64.whl
Collecting idna<2.8,>=2.5 (from requests>=2.18.4->kiteconnect)
Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests>=2.18.4->kiteconnect)
Using cached https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in c:\programdata\anaconda3\lib\site-packages (from requests>=2.18.4->kiteconnect)
Collecting urllib3<1.25,>=1.21.1 (from requests>=2.18.4->kiteconnect)
Using cached https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl
Collecting cryptography>=2.2.1 (from pyOpenSSL>=17.5.0->kiteconnect)
Using cached https://files.pythonhosted.org/packages/3c/a5/ac7f4d9fa22cf6783e2d62cbfdf0b14b937d873a9d129f8d4d95e2184af5/cryptography-2.4.2-cp36-cp36m-win_amd64.whl
Requirement already up-to-date: txaio>=18.8.1 in c:\programdata\anaconda3\lib\site-packages (from autobahn[twisted]>=17.10.1->kiteconnect)
Requirement already up-to-date: zope.interface>=3.6.0; extra == "twisted" in c:\programdata\anaconda3\lib\site-packages (from autobahn[twisted]>=17.10.1->kiteconnect)
Requirement already up-to-date: Twisted>=12.1.0; extra == "twisted" in c:\programdata\anaconda3\lib\site-packages (from autobahn[twisted]>=17.10.1->kiteconnect)
Requirement already up-to-date: asn1crypto>=0.21.0 in c:\programdata\anaconda3\lib\site-packages (from cryptography>=2.2.1->pyOpenSSL>=17.5.0->kiteconnect)
Collecting cffi!=1.11.3,>=1.7 (from cryptography>=2.2.1->pyOpenSSL>=17.5.0->kiteconnect)
Using cached https://files.pythonhosted.org/packages/2f/85/a9184548ad4261916d08a50d9e272bf6f93c54f3735878fbfc9335efd94b/cffi-1.11.5-cp36-cp36m-win_amd64.whl
Collecting setuptools (from zope.interface>=3.6.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect)
Using cached https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl
Requirement already up-to-date: hyperlink>=17.1.1 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=12.1.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect)
Collecting attrs>=17.4.0 (from Twisted>=12.1.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect)
Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Requirement already up-to-date: constantly>=15.1 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=12.1.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect)
Requirement already up-to-date: Automat>=0.3.0 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=12.1.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect)
Requirement already up-to-date: PyHamcrest>=1.9.0 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=12.1.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect)
Requirement already up-to-date: incremental>=16.10.1 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=12.1.0; extra == "twisted"->autobahn[twisted]>=17.10.1->kiteconnect)
Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography>=2.2.1->pyOpenSSL>=17.5.0->kiteconnect)
Building wheels for collected packages: kiteconnect
Running setup.py bdist_wheel for kiteconnect ... done
Running setup.py clean for kiteconnect
Failed to build kiteconnect
Installing collected packages: idna, certifi, urllib3, requests, pycparser, cffi, cryptography, pyOpenSSL, python-dateutil, pypiwin32, kiteconnect, setuptools, attrs
Found existing installation: idna 2.6
Uninstalling idna-2.6:
Exception:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 544, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\idna' -> 'C:\\Users\\Ravi\\AppData\\Local\\Temp\\pip-tlvwlwe5-uninstall\\programdata\\anaconda3\\lib\\site-packages\\idna'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_uninstall.py", line 115, in remove
renames(path, new_path)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 267, in renames
shutil.move(old, new)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 556, in move
rmtree(src)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 494, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 389, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 387, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\idna\\codec.py'
You are using pip version 9.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.