unable to install Boto3 on windows - python

I am getting below exception after running pip install boto3 command
C:\boto3-develop>pip install boto3
Collecting boto3
Downloading boto3-1.4.4-py2.py3-none-any.whl (127kB)
100% |████████████████████████████████| 133kB 281kB/s
Collecting jmespath<1.0.0,>=0.7.1 (from boto3)
Downloading jmespath-0.9.2-py2.py3-none-any.whl
Collecting s3transfer<0.2.0,>=0.1.10 (from boto3) Downloading
s3transfer-0.1.10-py2.py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 787kB/s
Collecting botocore<1.6.0,>=1.5.0 (from boto3) Downloading
botocore-1.5.26-py2.py3-none-any.whl (3.4MB)
100% |████████████████████████████████| 3.4MB 81kB/s
Collecting docutils>=0.10 (from botocore<1.6.0,>=1.5.0->boto3)
Downloading docutils-0.13.1-py3-none-any.whl (536kB)
100% |████████████████████████████████| 542kB 205kB/s
Collecting python-dateutil<3.0.0,>=2.1 (from
botocore<1.6.0,>=1.5.0->boto3) Downloading
python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)
100% |████████████████████████████████| 194kB 273kB/s
Collecting six>=1.5 (from
python-dateutil<3.0.0,>=2.1->botocore<1.6.0,>=1.5.0->b oto3)
Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: jmespath, docutils, six,
python-dateutil, botocor e, s3transfer, boto3
Exception: Traceback (most recent call last): File "c:\program files
(x86)\python36-32\lib\site-packages\pip\basecommand.py" , line 215, in
main
status = self.run(options, args)
File "c:\program files
(x86)\python36-32\lib\site-packages\pip\commands\instal l.py", line
342, in run
prefix=options.prefix_path,
File "c:\program files
(x86)\python36-32\lib\site-packages\pip\req\req_set.py" , line 784, in
install
**kwargs
File "c:\program files
(x86)\python36-32\lib\site-packages\pip\req\req_install .py", line
851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "c:\program files
(x86)\python36-32\lib\site-packages\pip\req\req_install .py", line
1064, in move_wheel_files
isolated=self.isolated,
File "c:\program files
(x86)\python36-32\lib\site-packages\pip\wheel.py", line 345, in
move_wheel_files
clobber(source, lib_dir, True)
File "c:\program files
(x86)\python36-32\lib\site-packages\pip\wheel.py", line 316, in
clobber
ensure_dir(destdir)
File "c:\program files
(x86)\python36-32\lib\site-packages\pip\utils__init__. py", line 83,
in ensure_dir
os.makedirs(path)
File "c:\program files (x86)\python36-32\lib\os.py", line 220, in
makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'c:\program files
(x86)\python 36-32\Lib\site-packages\jmespath'
C:\boto3-develop>

Make sure you are running the command line as administrator. Lack of privileges often prevents installation of python packages.

Related

Flask-User : Impossible to install flask-user I get an permission error

Hi I 'm trying to install flask-user its seems that it don't want to be installed
I used a virtualenv environment and python3.7 flask 1.1.2
I have looking for how to fixe it but I didn't find any solutions , is it someone can help me to fix that, I put you the traceback below
(env) C:\Users\hp\Travaux\flask-projet\flask_user_tuto>pip install "Flask-User<0.7"
Collecting Flask-User<0.7
Downloading Flask-User-0.6.21.tar.gz (64 kB)
|████████████████████████████████| 64 kB 141 kB/s
Requirement already satisfied: bcrypt in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (3.1.7)
Requirement already satisfied: Flask in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (1.1.2)
Requirement already satisfied: Flask-Login in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (0.5.0)
Requirement already satisfied: Flask-Mail in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (0.9.1)
Requirement already satisfied: Flask-SQLAlchemy in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (2.4.1)
Requirement already satisfied: Flask-WTF in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (0.14.3)
Requirement already satisfied: passlib in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (1.7.2)
Collecting pycryptodome
Downloading pycryptodome-3.9.7-cp37-cp37m-win_amd64.whl (14.1 MB)
|███████████████████████████▌ | 12.1 MB 234 kB/s eta 0:00:09ERROR: Exception:
Traceback (most recent call last):
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\urllib3\response.py", line 425, in _error_catcher
yield
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\urllib3\response.py", line 507, in read
data = self._fp.read(amt) if not fp_closed else b""
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\http\client.py", line 457, in read
n = self.readinto(b)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\http\client.py", line 501, in readinto
n = self.fp.readinto(b)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\ssl.py", line 1071, in recv_into
return self.read(nbytes, buffer)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\ssl.py", line 929, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\cli\base_command.py", line 186, in _main
status = self.run(options, args)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\commands\install.py", line 331, in run
resolver.resolve(requirement_set)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\legacy_resolve.py", line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\legacy_resolve.py", line 333, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\legacy_resolve.py", line 282, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\operations\prepare.py", line 482, in prepare_linked_requirement
hashes=hashes,
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\operations\prepare.py", line 287, in unpack_url
hashes=hashes,
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\operations\prepare.py", line 159, in unpack_http_url
link, downloader, temp_dir.path, hashes
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\operations\prepare.py", line 303, in _download_http_url
for chunk in download.chunks:
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\utils\ui.py", line 160, in iter
for x in it:
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\network\utils.py", line 39, in response_chunks
decode_content=False,
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\urllib3\response.py", line 564, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\urllib3\response.py", line 529, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\urllib3\response.py", line 430, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
I firstly got this error but I tried to fix that with using --default-timeout and another error appeared that have blocked me to continue my projet I put another traceback below
(env) C:\Users\hp\Travaux\flask-projet\flask_user_tuto>pip install --default-timeout=100 "Flask-User<0.7"
Collecting Flask-User<0.7
Using cached Flask-User-0.6.21.tar.gz (64 kB)
Requirement already satisfied: bcrypt in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (3.1.7)
Requirement already satisfied: Flask in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (1.1.2)
Requirement already satisfied: Flask-Login in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (0.5.0)
Requirement already satisfied: Flask-Mail in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (0.9.1)
Requirement already satisfied: Flask-SQLAlchemy in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (2.4.1)
Requirement already satisfied: Flask-WTF in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (0.14.3)
Requirement already satisfied: passlib in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-User<0.7) (1.7.2)
Collecting pycryptodome
Downloading pycryptodome-3.9.7-cp37-cp37m-win_amd64.whl (14.1 MB)
|████████████████████████████████| 14.1 MB 172 kB/s
Requirement already satisfied: cffi>=1.1 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from bcrypt->Flask-User<0.7) (1.14.0)
Requirement already satisfied: six>=1.4.1 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from bcrypt->Flask-User<0.7) (1.14.0)
Requirement already satisfied: Jinja2>=2.10.1 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask->Flask-User<0.7) (2.11.2)
Requirement already satisfied: Werkzeug>=0.15 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask->Flask-User<0.7) (1.0.1)
Requirement already satisfied: itsdangerous>=0.24 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask->Flask-User<0.7) (1.1.0)
Requirement already satisfied: click>=5.1 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask->Flask-User<0.7) (7.1.1)
Requirement already satisfied: blinker in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-Mail->Flask-User<0.7) (1.4)
Requirement already satisfied: SQLAlchemy>=0.8.0 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-SQLAlchemy->Flask-User<0.7) (1.3.16)
Requirement already satisfied: WTForms in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Flask-WTF->Flask-User<0.7) (2.2.1)
Requirement already satisfied: pycparser in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from cffi>=1.1->bcrypt->Flask-User<0.7) (2.20)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages (from Jinja2>=2.10.1->Flask->Flask-User<0.7) (1.1.1)
Installing collected packages: pycryptodome, Flask-User
Attempting uninstall: Flask-User
Found existing installation: Flask-User 1.0.2.2
Uninstalling Flask-User-1.0.2.2:
Successfully uninstalled Flask-User-1.0.2.2
Running setup.py install for Flask-User ... done
Successfully installed Flask-User-0.6.21 pycryptodome-3.9.7
ERROR: Exception:
Traceback (most recent call last):
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\cli\base_command.py", line 186, in _main
status = self.run(options, args)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\commands\install.py", line 450, in run
wheel_cache.cleanup()
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\utils\temp_dir.py", line 153, in __exit__
self.cleanup()
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\utils\temp_dir.py", line 175, in cleanup
rmtree(self._path)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\retrying.py", line 212, in call
raise attempt.get()
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\six.py", line 703, in reraise
raise value
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_vendor\retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "c:\users\hp\travaux\flask-projet\flask_user_tuto\env\lib\site-packages\pip\_internal\utils\misc.py", line 136, in rmtree
onerror=rmtree_errorhandler)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\shutil.py", line 516, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\shutil.py", line 395, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\shutil.py", line 395, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\shutil.py", line 395, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\shutil.py", line 400, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\shutil.py", line 398, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Accès refusé: 'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-m96_7wsd\\pycryptodome\\Crypto\\Cipher\\_ARC4.cp37-win_amd64.pyd'
I hope someone can help to fix that thank you
Try run as administrator.
Good luck.

Python: Kivy throws an exception when trying to install it with pip

I am currently trying to install kivy to python 3.6, but when i am trying yo install it it throws the following exception:
C:\Users\magshimim\Desktop\notKivy>python -m pip install kivy
Collecting kivy
Using cached
https://files.pythonhosted.org/packages/29/e6/e07f77a8d85a626bb955fe072d41042c4c
ee6deaca61295f1c08e6407097/Kivy-1.10.0-cp36-cp36m-win32.whl Collecting Kivy-Garden>=0.1.4 (from kivy)
Using cached https://files.pythonhosted.org/packages/7d/68/decaee596ff8168a39432eb3949fc7c0be952ebb9467806823bffc165d48/kivy-garden-0.1.4.tar.gz
Requirement already satisfied: docutils in c:\python36\lib\site-packages (from kivy)
Requirement already satisfied: pygments in c:\python36\lib\site-packages (from kivy)
Requirement already satisfied: requests in c:\python36\lib\site-packages (from Kivy-Garden>=0.1.4->kivy)
Exception:
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Python36\lib\site-packages\pip\commands\install.py", line 335, in run
wb.build(autobuilding=True)
File "C:\Python36\lib\site-packages\pip\wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "C:\Python36\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\Python36\lib\site-packages\pip\req\req_set.py", line 666, in _prepare_file
check_dist_requires_python(dist)
File "C:\Python36\lib\site-packages\pip\utils\packaging.py", line 48, in check_dist_requires_python
feed_parser.feed(metadata)
File "C:\Python36\lib\email\feedparser.py", line 175, in feed
self._input.push(data)
File "C:\Python36\lib\email\feedparser.py", line 103, in push
self._partial.write(data)
TypeError: string argument expected, got 'NoneType'
Any help?
Try instead:
pip install kivy
Worked for me on my Windows machine. Make sure pip is in the Path enviornment variable on your machine.

Permission error when I install keras package in Program Files

I need to instal keras package i have anaconda3 and python 2.7.13 and windows 10 OS
where i execut this line
pip install keras
give me this error :
(C:\Program Files\Anaconda) C:\Users\User-47>pip install keras
Collecting keras
Using cached Keras-2.1.2-py2.py3-none-any.whl
Requirement already satisfied: scipy>=0.14 in c:\program
files\anaconda\lib\site-packages (from keras)
Requirement already satisfied: numpy>=1.9.1 in c:\program files\anaconda\lib\site-packages (from keras)
Requirement already satisfied: pyyaml in c:\program files\anaconda\lib\site-packages (from keras)
Requirement already satisfied: six>=1.9.0 in c:\program files\anaconda\lib\site-packages (from keras)
Installing collected packages: keras
Exception:
Traceback (most recent call last):
File "C:\Program Files\Anaconda\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Program Files\Anaconda\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Program Files\Anaconda\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\Program Files\Anaconda\lib\site-packages\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Program Files\Anaconda\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\Program Files\Anaconda\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Program Files\Anaconda\lib\site-packages\pip\wheel.py", line 316, in clobber
ensure_dir(destdir)
File "C:\Program Files\Anaconda\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "C:\Program Files\Anaconda\lib\os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Accès refusé: 'C:\\Program Files\\Anaconda\\Lib\\site-packages\\keras'
The answer is in the exception: PermissionError: [WinError 5] Accès refusé: 'C:\\Program Files\\Anaconda\\Lib\\site-packages\\keras'. Installing files in C:\Program Files requires an administrator account, not a user account. Whoever installed Anaconda on the machine either used an admin account or gave an admin password in a UserAccessControl (UAC) box. I am slightly surprised that you did not see such a box, but I guess it depends on the Windows version and settings.
People who install Anaconda just for their user account have to put it or let it be put somewhere else.

PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\six.py'

I am using python 3.5.3, and now I want to install pandas and numpy but not able to, following is the error in cmd, anyone can help me?
C:\Program Files\Python35\Scripts>py -3.5 -m pip install pandas
Collecting pandas
Using cached pandas-0.20.1-cp35-cp35m-win_amd64.whl
Collecting python-dateutil>=2 (from pandas)
Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Collecting numpy>=1.7.0 (from pandas)
Using cached numpy-1.12.1-cp35-none-win_amd64.whl
Collecting pytz>=2011k (from pandas)
Using cached pytz-2017.2-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil>=2->pandas)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, numpy, pytz, pandas
Exception:
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Program Files\Python35\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Program Files\Python35\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\Program Files\Python35\lib\site-packages\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Program Files\Python35\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\Program Files\Python35\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Program Files\Python35\lib\site-packages\pip\wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "C:\Program Files\Python35\lib\shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\six.py'
As others have pointed out you need to run the command with admin privileges.
How to do this varies by windows version, but on Windows 8 and 10 you can just press Windows+X (or just right-clicking the Start button). On the menu, choose “Command Prompt (Admin).”
The command line you're using does not have access to C:\\Program Files\\Python35\\Lib\\site-packages\\six.py.
Run the command in a command line with administrative priveleges.
Run command line in admin mode and then :
pip instal pandas

No module named flask in Microsoft Visual Studio 2013

When I run a new (Fresh creation without any modifications) Flask Web Project in Visual Studio it does not compile. I get an error "No module named flask". This makes no sense to me because it was a "Flask" project that I created and I didn't do anything to break it. Is it possible that Microsoft provides broken template for new Flask projects? I'm confused.
When I try to add a virtual environment I get the following log:
Value cannot be null.
Parameter name: valueInstalling 'pip' package manager.
Downloading setuptools from https://go.microsoft.com/fwlink/?LinkId=317603
Traceback (most recent call last):
File "E:\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\pip_downloader.py", line 47, in <module>
setuptools_package, _ = urlretrieve(SETUPTOOLS_SOURCE, 'setuptools.tar.gz')
File "C:\Python27\lib\urllib.py", line 94, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "C:\Python27\lib\urllib.py", line 240, in retrieve
fp = self.open(url, data)
File "C:\Python27\lib\urllib.py", line 208, in open
return getattr(self, name)(url)
File "C:\Python27\lib\urllib.py", line 437, in open_https
h.endheaders(data)
File "C:\Python27\lib\httplib.py", line 991, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 844, in _send_output
self.send(msg)
File "C:\Python27\lib\httplib.py", line 806, in send
self.connect()
File "C:\Python27\lib\httplib.py", line 1198, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "C:\Python27\lib\ssl.py", line 392, in wrap_socket
ciphers=ciphers)
File "C:\Python27\lib\ssl.py", line 148, in __init__
self.do_handshake()
File "C:\Python27\lib\ssl.py", line 310, in do_handshake
self._sslobj.do_handshake()
IOError: [Errno socket error] [Errno 8] _ssl.c:510: EOF occurred in violation of protocol
'pip' failed to install. Exit code: 1
C:\Python27\python.exe: No module named pip
you will need to install flask as shown below using powershell in administrator mode
PS C:\Python34> pip install flask
Collecting flask
Downloading Flask-0.10.1.tar.gz (544kB)
100% |################################| 544kB 210kB/s
Collecting Werkzeug>=0.7 (from flask)
Downloading Werkzeug-0.10.4-py2.py3-none-any.whl (293kB)
100% |################################| 294kB 28kB/s
Collecting Jinja2>=2.4 (from flask)
Downloading Jinja2-2.7.3.tar.gz (378kB)
100% |################################| 380kB 262kB/s
Collecting itsdangerous>=0.21 (from flask)
Downloading itsdangerous-0.24.tar.gz (46kB)
100% |################################| 49kB 293kB/s
Collecting markupsafe (from Jinja2>=2.4->flask)
Downloading MarkupSafe-0.23.tar.gz
Building wheels for collected packages: flask, Jinja2, itsdangerous, markupsafe
Running setup.py bdist_wheel for flask
Stored in directory: C:\Users\TrustM\AppData\Local\pip\Cache\wheels\d2\db\61\cb9b80526b8f3ba89248ec0a29d6da1bb60136
930fca987
Running setup.py bdist_wheel for Jinja2
Stored in directory: C:\Users\TrustM\AppData\Local\pip\Cache\wheels\b3\c0\62\8908d15b90a7de8bd15e2e6e5f5ba1398c0d99
62a6bf8f5
Running setup.py bdist_wheel for itsdangerous
Stored in directory: C:\Users\TrustM\AppData\Local\pip\Cache\wheels\97\c0\b8\b37c320ff57e15f993ba0ac98013eee778920b
b3ebae3cf
Running setup.py bdist_wheel for markupsafe
Stored in directory: C:\Users\TrustM\AppData\Local\pip\Cache\wheels\94\a7\79\f79a998b64c1281cb99fa9bbd33cfc9b8b5775
8218d17a7
Successfully built flask Jinja2 itsdangerous markupsafe
Installing collected packages: Werkzeug, markupsafe, Jinja2, itsdangerous, flask
Successfully installed Jinja2-2.7.3 Werkzeug-0.10.4 flask-0.10.1 itsdangerous-0.24 markupsafe-0.23
PS C:\Python34> pip install django
Collecting django
Downloading Django-1.8.2-py2.py3-none-any.whl (6.2MB)
100% |################################| 6.2MB 15kB/s
Installing collected packages: django
Successfully installed django-1.8.2
PS C:\Python34>

Categories

Resources