pip install PySide fails - pyqt

I am using both Python 2 and Python 3. I am trying to make pylab variation of ipython work on Python 3 (as it works well enough on Python 2).
After failing to install PyQt4, I have tried installing PySide install, using the following pip command:
sudo pip -vvv install --upgrade pyside
It took a while. My computer got fairly hot, also. But after reaching 100%, the installation failed with the following error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-o8v5e0ej/pyside/setup.py", line 1001, in <module>
ext_package = 'PySide',
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-build-o8v5e0ej/pyside/setup.py", line 245, in run
raise RuntimeError("Can't find '%s'" % (filename,))
RuntimeError: Can't find '/usr/bin/pyside_postinstall.py'
----------------------------------------
Cleaning up...
Removing source in /tmp/pip-build-o8v5e0ej/pyside [85/929]
Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-o8v5e0ej/pyside/setup.py';exec(compile(getattr(tokenize, 'open', open)(__fil
e__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1z4uq1n8-record/install-record.txt --single-version-externally-managed --compi
le" failed with error code 1 in /tmp/pip-build-o8v5e0ej/pyside
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/usr/local/lib/python3.4/dist-packages/pip/commands/install.py", line 299, in run
root=options.root_path,
File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 646, in install
**kwargs
File "/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py", line 862, in install
show_stdout=False,
File "/usr/local/lib/python3.4/dist-packages/pip/utils/__init__.py", line 732, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-o8v5e0ej/pyside/setup.py';exec(compile(get
attr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1z4uq1n8-record/install-record.txt --single-
version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-o8v5e0ej/pyside
So all in all, it did not help me with pylab. Running ipython --pylab raises
ImportError: libpyside.cpython-34m.so.1.2: cannot open shared object file: No such file or directory
This is a result of the line
from PySide import QtCore, QtGui, __version__, __version_info__
Have I done something wrong?
My system info:
Python 3.4.0
Ubuntu 14.04.3 LTS (trusty)
Architecture: 64 bit
Kernel version: 3.16.0-40-generic

I am not completely sure this is a proper answer to my question, as it does not really solve the problem with pip, but I have succeeded in solving the pylab issue on my machine, and this is what I've done:
I've purged (via aptitude) both python3-pyqt4 and python3-pyqt5
I've uninstalled (via pip) python pyside
I've installed (via aptitude) python3-pyside
Now ipython --pylab works (with Python 3.4.0).

Related

PyPotrace pip Install Error on Jupyter Notebook

I am trying to install potrace in my jupyter notebook virtual env but I am running into this error code. I have looked around for any known fixes on jupyter notebook but I can't find any, does anyone know how to fix this?
As per the first comment: I reinstalled pkg-config (via brew) and re ran the program which unfortunately did not fix the issue.
ERROR CODE:
pip install pypotrace
Collecting pypotrace
Using cached pypotrace-0.2.tar.gz (26 kB)
ERROR: Command errored out with exit status 1:
command: /Users/user/.local/share/virtualenvs/user-c-cRme8X/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/setup.py'"'"'; __file__='"'"'/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/pip-egg-info
cwd: /private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/
Complete output (25 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/setup.py", line 4, in <module>
setup()
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 149, in setup
parsed_setup_cfg = parse_setup_cfg(fp, cythonize=cythonize)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 222, in parse_setup_cfg
return _expand_cython_modules(config, cythonize, pkg_config, base_dir)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 230, in _expand_cython_modules
module_dict = _expand_one_cython_module(config, section, cythonize,
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 239, in _expand_one_cython_module
_expand_pkg_config_pkgs(config, section, pkg_config)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 299, in _expand_pkg_config_pkgs
extra_compile_args = pkg_config(pkg_names, '--cflags', env)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 308, in _run_pkg_config
return subprocess.check_output(['pkg-config', command] + pkg_names,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Appreciate any help I can get!
Your error says that its missing pkg-config package.
Try installing it using : sudo apt install -y pkg-config (linux) or brew install pkg-config (MacOS)

error while using pip install dlib in pycharm in mac os

I m getting this error while using "pip install dlib" in pycharm in mac os. can anyone help me out
Collecting dlib
Using cached dlib-19.19.0.tar.gz (3.2 MB)
Installing collected packages: dlib
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/admin/Desktop/pythonwork/peoplecounter/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"'; __file__='"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pip-record-f48gmks5/install-record.txt --single-version-externally-managed --compile --install-headers /Users/admin/Desktop/pythonwork/peoplecounter/include/site/python3.7/dlib
cwd: /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/
Complete output (69 lines):
running install
running build
running build_py
package init file 'dlib/__init__.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
Building extension for Python 3.7.2 (default, Jan 13 2019, 12:50:01)
Invoking CMake setup: 'cmake /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/lib.macosx-10.14-x86_64-3.7 -DPYTHON_EXECUTABLE=/Users/admin/Desktop/pythonwork/peoplecounter/bin/python -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/Cellar/cmake/3.16.2/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_35e30/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeOutput.log".
See also "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py", line 261, in <module>
'Topic :: Software Development',
File "/Users/admin/Desktop/pythonwork/peoplecounter/lib/python3.7/site-packages/setuptools-39.1.0-py3.7.egg/setuptools/__init__.py", line 129, in setup
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/admin/Desktop/pythonwork/peoplecounter/lib/python3.7/site-packages/setuptools-39.1.0-py3.7.egg/setuptools/command/install.py", line 61, in run
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py", line 135, in run
self.build_extension(ext)
File "/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/build/lib.macosx-10.14-x86_64-3.7', '-DPYTHON_EXECUTABLE=/Users/admin/Desktop/pythonwork/peoplecounter/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/admin/Desktop/pythonwork/peoplecounter/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"'; file='"'"'/private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pycharm-packaging/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/8p/177ygjb93_9_y67f62dpyx8w0000gn/T/pip-record-f48gmks5/install-record.txt --single-version-externally-managed --compile --install-headers /Users/admin/Desktop/pythonwork/peoplecounter/include/site/python3.7/dlib Check the logs for full command output.
I had the same issue in VSCode. After finding this issue I went to https://gist.github.com/gaquino/87bdf0e6e852e445c0489379d3e9732a
This reminded me that to upgrade to Catalina I had uninstalled XCode entirely and removed the Command Line tools to resolve some homebrew weirdness. I also migrated to zsh as that is Catalina's default. Not sure which of these requires a reinstall of XCode Command Line Tools, but I am sure one or several of them do.
Try installing the command line tools by opening a Terminal and typing:
$ xcode-select --install
And if this helps please credit me with closing this as it will De-StackOverflower me (be my first solved issue).
Thanks,
Daniel

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.** while installing gumpy

I am trying to install gumpy on my computer but I ran into this Error:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I use pip install gumpy code to install it and My python version is 3.6
I would be grateful if any one can help me
this is full error that is shown to me:
C:\Users\Hp>pip install gumpy
Collecting gumpy
Using cached https://files.pythonhosted.org/packages/d8/41/4a43289f78b2b2bc8fa
ac7cce8fefc414932d3adbe7df90835faec182524/gumpy-0.1-py3-none-any.whl
Collecting Biopython>=1.70
Using cached https://files.pythonhosted.org/packages/06/c2/ce4f74ce5dd00f02189
b3abf3cfce138f615c285d56f65d69cc994162f97/biopython-1.75-cp36-cp36m-win_amd64.wh
l
Collecting tqdm>=4.19.5
Using cached https://files.pythonhosted.org/packages/7f/32/5144caf0478b1f26bd9
d97f510a47336cf4ac0f96c6bc3b5af20d4173920/tqdm-4.40.2-py2.py3-none-any.whl
Collecting pytest>=4.0.0
Using cached https://files.pythonhosted.org/packages/19/cf/711f1d887cb92c5155c
9a1eb338f1b5d2411b50e4492a3b20e4a188a22b2/pytest-5.3.2-py3-none-any.whl
Collecting pysam>=0.15.2
Using cached https://files.pythonhosted.org/packages/15/e7/2dab8bb0ac739555e69
586f1492f0ff6bc4a1f8312992a83001d3deb77ac/pysam-0.15.3.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\appdata\local\programs\python\python36\python.exe' -c
'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Hp\\AppData\\L
ocal\\Temp\\pip-install-ptmps6t8\\pysam\\setup.py'"'"'; __file__='"'"'C:\\Users\
\Hp\\AppData\\Local\\Temp\\pip-install-ptmps6t8\\pysam\\setup.py'"'"';f=getattr(
tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
--egg-base 'C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\pip-egg-in
fo'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\
Complete output (23 lines):
# pysam: cython is available - using cythonize if necessary
# pysam: htslib mode is shared
# pysam: HTSLIB_CONFIGURE_OPTIONS=None
'.' is not recognized as an internal or external command,
operable program or batch file.
'.' is not recognized as an internal or external command,
operable program or batch file.
# pysam: htslib configure options: None
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\setup.py",
line 241, in <module>
htslib_make_options = run_make_print_config()
File "C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\setup.py",
line 68, in run_make_print_config
stdout = subprocess.check_output(["make", "-s", "print-config"])
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 356, in check_output
**kwargs).stdout
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 729, in __init__
restore_signals, start_new_session)
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 1017, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
I had the same issue when running few python3 packages on my windows10 platform. I did add the path, but still did not work, then I tried a repair procedure that did not work either. Finally I had to uninstall and re install python3.7.7 [not from the wondows store, but from the official website]. That seemed to solve the issue apparently.

Clarifai installation error : Visual C++ Build Tools + access denied

Hye guys , I kinda got stucked when i tried to install the clarifai library
py -m pip install clarifai --upgrade
when I enter that command into cmd i get this error:
reading manifest file 'Pillow.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'Pillow.egg-info\SOURCES.txt'
copying PIL\OleFileIO-README.md -> build\lib.win-amd64-3.6\PIL
running build_ext
building 'PIL._imaging' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Rolling back uninstall of pillow
Command ""C:\Program Files\Python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\StyleZ\\AppData\\Local\\Temp\\pip-build-saobo9i2\\Pillow\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\StyleZ\AppData\Local\Temp\pip-aya2mngc-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\StyleZ\AppData\Local\Temp\pip-build-saobo9i2\Pillow\
I have installed the build tools and this an error i get from a console there :
Installing collected packages: Pillow, clarifai
Found existing installation: pillow 5.0.0
Uninstalling pillow-5.0.0:
Exception:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\shutil.py", line 544, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] Access is denied: 'c:\\program files\\python36\\lib\\site-packages\\pil\\__init__.py' -> 'C:\\Users\\StyleZ\\AppData\\Local\\Temp\\pip-4n872yw7-uninstall\\program files\\python36\\lib\\site-packages\\pil\\__init__.py'
During handling of the above exception, another exception occurred:
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 778, in install
requirement.uninstall(auto_confirm=True)
File "C:\Program Files\Python36\lib\site-packages\pip\req\req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "C:\Program Files\Python36\lib\site-packages\pip\req\req_uninstall.py", line 115, in remove
renames(path, new_path)
File "C:\Program Files\Python36\lib\site-packages\pip\utils\__init__.py", line 267, in renames
shutil.move(old, new)
File "C:\Program Files\Python36\lib\shutil.py", line 559, in move
os.unlink(src)
PermissionError: [WinError 5] Access is denied: 'c:\\program files\\python36\\lib\\site-packages\\pil\\__init__.py'
I was trying multiple things ... but as I noticed in second console I dont have a permissions , while the programm is running as admin and at a same time I have only 1 user and thats this admin ...
Any idea how to fix it ?
okey I found out how to fix this :) if somone is wondering
py -m pip install clarifai --upgrade
needs to be changed to :
python -m pip install clarifai
also dont forget to run it as an Admin

Install flask-bcrypt via pip: Unable to find vcvarsall.bat

I try to install flask-bcrypt via pip, but it raisis me this error:
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
I am currently running Visual Studio 2015 RC with Python 3 on Windows 10.
Any ideas how to solve this error?
Edit:
I tried to follow diffrent solutions and installed Visual Studio 2010 Express and am now stuck with teh following error (Installing via PIP in VS 2013):
Collecting py-bcrypt
Using cached py-bcrypt-0.4.tar.gz
Installing collected packages: py-bcrypt
Running setup.py install for py-bcrypt
Complete output from command "C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\Scripts\python.exe" -c "import setuptools, tokenize;__file__='C:\\Users\\Niels\\AppData\\Local\\Temp\\pip-build-3pqnujd2\\py-bcrypt\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Niels\AppData\Local\Temp\pip-syaty7au-record\install-record.txt --single-version-externally-managed --compile --install-headers "C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\include\site\python3.4\py-bcrypt":
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.4
creating build\lib.win-amd64-3.4\bcrypt
copying bcrypt\__init__.py -> build\lib.win-amd64-3.4\bcrypt
running build_ext
building 'bcrypt._bcrypt' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Niels\AppData\Local\Temp\pip-build-3pqnujd2\py-bcrypt\setup.py", line 61, in <module>
ext_modules = [bcrypt]
File "C:\Users\Niels\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Niels\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\Niels\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\lib\site-packages\setuptools-15.1-py3.4.egg\setuptools\command\install.py", line 61, in run
File "C:\Users\Niels\Anaconda3\lib\distutils\command\install.py", line 539, in run
self.run_command('build')
File "C:\Users\Niels\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Niels\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\Niels\Anaconda3\lib\distutils\command\build.py", line 126, in run
self.run_command(cmd_name)
File "C:\Users\Niels\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Niels\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\lib\site-packages\setuptools-15.1-py3.4.egg\setuptools\command\build_ext.py", line 50, in run
File "C:\Users\Niels\Anaconda3\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\Niels\Anaconda3\lib\distutils\command\build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\lib\site-packages\setuptools-15.1-py3.4.egg\setuptools\command\build_ext.py", line 183, in build_extension
File "C:\Users\Niels\Anaconda3\lib\distutils\command\build_ext.py", line 503, in build_extension
depends=ext.depends)
File "C:\Users\Niels\Anaconda3\lib\distutils\msvc9compiler.py", line 460, in compile
self.initialize()
File "C:\Users\Niels\Anaconda3\lib\distutils\msvc9compiler.py", line 371, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\lib\site-packages\setuptools-15.1-py3.4.egg\setuptools\msvc9_support.py", line 52, in query_vcvarsall
File "C:\Users\Niels\Anaconda3\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: ['path']
----------------------------------------
Command ""C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\Scripts\python.exe" -c "import setuptools, tokenize;__file__='C:\\Users\\Niels\\AppData\\Local\\Temp\\pip-build-3pqnujd2\\py-bcrypt\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Niels\AppData\Local\Temp\pip-syaty7au-record\install-record.txt --single-version-externally-managed --compile --install-headers "C:\Users\Niels\Documents\Visual Studio 2013\Projects\biospark\biospark\env_biospark\include\site\python3.4\py-bcrypt"" failed with error code 1 in C:\Users\Niels\AppData\Local\Temp\pip-build-3pqnujd2\py-bcrypt
'py-bcrypt' failed to install. Exit code: 1
Edit 2: I installed pycrypto via thsi Windows Installer: https://github.com/axper/python3-pycrypto-windows-installer which comes with bcrypt and suits my needs. But it would be nice to solve the original Problem.
Apparently the problem can be solved by installing py-bcrypt first. A win32 installer is available from the first comment to this reddit post:
http://www.reddit.com/r/flask/comments/15q5xj/anyone_have_a_working_version_of_flaskbcrypt_for/
Here is another option, you need to setup Wheel package before you can import bcrypt
pip install wheel
pip install bcrypt
from flask_bcrypt import Bcrypt

Resources