I couldn't find any good tutorial for installation of Darknet and Lightnet on Windows. However, following the tutorials on their official Git Page, I tried running Python command
pip install darknetpy
On running this, I am seeing the following error:
Failed building wheel for darknetpy
Running setup.py clean for darknetpy
Failed to build darknetpy
Installing collected packages: darknetpy
Running setup.py install for darknetpy ... error
Complete output from command c:\users\pop\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Pop\\AppData\\Local\\Temp\\pip-build-aew1mvz2\\darknetpy\\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\Pop\AppData\Local\Temp\pip-hj4a3ywj-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
'make' is not recognized as an internal or external command,
operable program or batch file.
error: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Pop\\AppData\\Local\\Temp\\darknet\\libdarknet.so'
----------------------------------------
Command "c:\users\pop\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Pop\\AppData\\Local\\Temp\\pip-build-aew1mvz2\\darknetpy\\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\Pop\AppData\Local\Temp\pip-hj4a3ywj-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Pop\AppData\Local\Temp\pip-build-aew1mvz2\darknetpy\
Even with Cygwin(64), the issue darknetpy issue 1 shows it wouldn't work on Windows.
The best options are (on Windows):
use a VM Linux
use a docker image for darknet, like lindt/docker-darknet (with docker-for-windows, which will use a small Linux VM through HyperV)
The pypi page for darketpy indicates that it requires a POSIX operating system. If you want to install it on Windows, you'll need something like cygwin.
Related
With Mac OS Ver 10.13.1 and Python 3.6:
I have installed Python with a success, but when I input sudo pip3 install pybluez in the terminal.app.The result is as follows:
The warning and error info. log :
(1)
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-01oswgn6/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ekqpt5n6-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-01oswgn6/pybluez/
(2)Failed building wheel for pybluez
(3)The directory '/Users/ringo/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Then I googled and re-input the following command:
sudo -H pip3 install pbluez,and 2 errors are :
(1)Failed building wheel for pybluez
(2)Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-krv0pwmm/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-38mly9ts-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-krv0pwmm/pybluez/
I have googled and no effective ways to the issue.Any one has any idea about it is appreciated.
Bluez is the "official Linux Bluetooth protocol stack", i.e., not meant for macOS.
If you want to develop a Bluetooth application for macOS target, check https://developer.apple.com/bluetooth/
I am trying to migrate to Cloud Endpoints Frameworks 2.0 for App Engine from v1 in Python
When I pip install pip install -t lib google-endpoints --ignore-installed, I get an error
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-blaNgj/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-E6OxwC-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmp_5iRxU" failed with error code 1 in /private/tmp/pip-build-blaNgj/pycrypto
How to fix this?
I have also tried sudo pip install -t lib google-endpoints --ignore-installed, but it didn't help
It is very hard to read the error message you pasted, since it's all on one line, but I think the issue you're having may be due to being on a Mac and not having either XCode or the XCode command line tools installed.
Try running 'gcc' at the command line and seeing if it says you need to install something.
I want to use webkit with Python but I can't figure out.
Every example in the internet is based on PyQt5 webkit like this one but webkit is completely deprecated from the module.
Then I tried to install PySide but I can't.
$ pip3.4 install PySide
Collecting PySide
Using cached PySide-1.2.4.tar.gz
Installing collected packages: PySide
Running setup.py install for PySide ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-lkgv5ggu-record/install-record.txt --single-version-externally-managed --compile:
Removing /private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/pyside_package
running install
running build
Python architecture is 64bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-lkgv5ggu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/rw/62mg3wsx77l44_2rc9d8h6hc0000gn/T/pip-build-fi45551_/PySide/
Then I tried this code, but I get ModuleNotFoundError for webkit and gtk. I searched to install the modules I can't find anything.
Is there any solution to use webkit in Python?
OS: macOS Sierra 10.12.5
PySide is depreciated
i'll suggest you to go for PySide2
then
pip3 install PyQtWebEngine
I am unable to install psutil by requeriments.txt neither by logging in with heroku run bash command and using the pip install psutil command.
The log is very large, so, I will put the "most important" part of it:
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-759b4csi/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-addox7ji-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-759b4csi/psutil/
Can someone help me with this?
I am using python 3.6.0 and pip 9.0.1
I used pip freeze > requirements.txt to generate a new requirements and this new file was processed by the deploy tool correctly.
I tried running pip install RPIO and found that in the process of installation, the following error occurs.
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\xxxxxx\\appdata\\local\\temp\\pip-build-
ef4z2k\\RPIO\\setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
c:\users\xxxxxx\appdata\local\temp\pip-3_ddbu-record\install-record.txt --
single-version-externally-managed --compile" failed with error code 1 in
c:\users\xxxxxx\appdata\local\temp\pip-build-ef4z2k\RPIO\
Most modules get installed without any such issue. I installed plotly and scipy modules right before these, and no issues were faced there. Any idea where I might be going wrong?