installer beautifulsoup avec pip
Bonjour à tous, et d'avance merci pour votre aide
J'essaie en vain d'installer beautifulsoup. Je suis avec windows et Python 3.6 et j'utilise pip.
Lorsque je tape dans cmd la ligne de commande
Code:
python -m pip install beautiful soup
j'obtiens le message d'erreur suivant :
C:\Program Files\Python36>python -m pip install beautifulsoup
Collecting beautifulsoup
Using cached BeautifulSoup-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\CHRIST~1\AppData\Local\Temp\pip-build-s4pe3bbf\beautifulsoup\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
et si j'essaie :
python -m pip install beautifulsoup4, j'obtiens :
C:\Program Files\Python36>python -m pip install beautifulsoup4
Collecting beautifulsoup4
Using cached beautifulsoup4-4.6.0-py3-none-any.whl
Installing collected packages: beautifulsoup4
Exception:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Program Files\Python36\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Program Files\Python36\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\Program Files\Python36\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\Python36\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\Program Files\Python36\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Program Files\Python36\lib\site-packages\pip\wheel.py", line 316, in clobber
ensure_dir(destdir)
File "C:\Program Files\Python36\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "C:\Program Files\Python36\lib\os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Accès refusé: 'C:\\Program Files\\Python36\\Lib\\site-packages\\beautifulsoup4-4.6.0.dist-info'
Quelqu'un a t-il une solution ? car je ne comprends pas.:koi::koi: