I know there's a whl file for python3.6. I don't want to downgrade to 3.6 or run in a virtual environment.
Soo my question is why hasn't anyone made the whl file available rather than downloading 4.4gb of ms vc that i know i won't beer using after compiling dlib.
Any help is much appreciated. Thanks
You need to compile it . Install Visual Studio 2019 and CMake . Then go to folder of your dlib , open the terminal and command python3 setup.py sdist bdist_wheel . It will load lots of text , and then you will have a wheel file in your dist folder . Good luck!
Related
From NVIDIA tensorRT documentation I have completed the first 4 steps for zip file for windows.But Now I can't really understand the 5th and 6th step specially where I have to 3 things to get it work for "tensorFlow". I can't understand how to execute this line
python3 -m pip install <installpath>\graphsurgeon\graphsurgeon-0.4.5-py2.py3-none-any.whl
Here is the link: https://docs.nvidia.com/deeplearning/tensorrt/install-guide/index.html#installing-zip
P.S:I am very new to this world of machine learning and TensorFlow.
You need to open a terminal with a python environment.
Press Ctrl+r and type cmd+Enter to open a terminal. You can check if you have the correct Python version by running python --version.
More information about package installing can be found here:
https://packaging.python.org/tutorials/installing-packages/#requirements-for-installing-packages
For install command execution, replace <installpath> by the location, where you installed TensorRT, e.g., if you installed it in C:\Program Files\TensorRT use:
python3 -m pip install "C:\Program Files"\TensorRT\graphsurgeon\graphsurgeon-0.4.5-py2.py3-none-any.whl
This is described in 2) from your link:
Choose where you want to install TensorRT. The zip file will install
everything into a subdirectory called TensorRT-7.x.x.x. This new
subdirectory will be referred to as <installpath> in the steps below.
I am trying to extract data from an invoice. I found invoice2data will do that job. I have pip installed invoice2data.
from invoice2data import extract_data
This is getting imported.
result = extract_data('sample.pdf')
When I run the above line it is showing that
OSError: pdftotext not installed. Can be downloaded from https://poppler.freedesktop.org/
When I try pip installing pdftotext it was showing virtual c++ 14.0 is required.I installed it using build tools. Again it was showing the same error. So I downloaded the files from https://pypi.org/project/pdftotext/ and pasted the extracted files in my anaconda/Lib/sitepackages directory. Now when I try to pip install pdftotext it is showing Requirement already satisfied: pdftotext in c:\users\vicky\anaconda3\lib\site-packages (2.1.2) Now, when I try to extract data from the pdf it is again showing the same error that pdftotext is not installed. How can I overcome this error or is there any other package that will satisfy my requirement?
Thanks in advance.
Install poppler-utils before pdftotext
sudo apt-get install poppler-utils
some simple steps to do, which worked for me...
1. download and install Visual Studio with C++ Build Tools, as Microsoft Visual C++ is required.
https://visualstudio.microsoft.com/downloads/
2. Download the latest binaries of Popplers for Windows
https://blog.alivate.com.au/poppler-windows/index.html
3. Extract and copy the 'poppler' folder which is inside the folder 'include'
4. Past this 'poppler' folder inside the 'Anaconda3/include/' folder
5. Then run 'pip install pdftotext'
YOU ARE DONE!!!
Similar to:
whl is not a supported wheel on this platform
xgboost pckage for python 3.6
But both didn't work for me.
I need to install xgboost on machine without internet.
I downloaded xgboost-0.81-py2.py3-none-win_amd64.whl file from https://pypi.org/project/xgboost/#files
My environment:
Windows X64
Python 3.7.0
pip 19.0.1
I got an error:
Same with "xgboost-0.81-cp37-cp37m-win_amd64.whl" from this website
I tried in similar way install "scikit_learn-0.20.2-cp37-cp37m-win32.whl" and everything went well.
I also tried
pip download xgboost -d "C:\USers...\XGBoost"
tar cvfz xgboost.tgz XGBoost
but I have error:
"tar" is not recognized as an internal or external command
I tried …win32.whl and everything went well.
You have 32-bit Python. With it you cannot install 64-bit wheel (amd64.whl). Download 32-bit wheel.
Or replace your Python with 64-bit Python and reinstall all packages.
You can use Anaconda Powershell Prompt(menu->Anaconda->Anaconda Powershell Prompt) to install xgboost
command:pip install xgboost
hope it helps you
I'm trying to install cx_Freeze and scipy but I get a
compile failed with error code 1
error every time. Here's what I see when I try to do it with cx_Freeze:
error: file 'C:\Users\myAccount\AppData\Local\Temp\pip-install-nabp1tpo\cx-fre
eze\cxfreeze-postinstall' does not exist
----------------------------------------
Command "c:\users\myAccount\appdata\local\programs\python\python37\python.exe -u -
c "import setuptools, tokenize;__file__='C:\\Users\\myAccount\\AppData\\Local\\Tem
p\\pip-install-nabp1tpo\\cx-freeze\\setup.py';f=getattr(tokenize, 'open', open)(
__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __fil
e__, 'exec'))" install --record C:\Users\myAccount\AppData\Local\Temp\pip-record-3
6fbtmht\install-record.txt --single-version-externally-managed --compile" failed
with error code 1 in C:\Users\myAccount\AppData\Local\Temp\pip-install-nabp1tpo\c
x-freeze\
How can I fix this?
You could manage to install it from wheel.
First you need to install wheel:
pip install wheel
Then go to the following link to download the cx_Freeze wheel file according to you python version and windows version:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze
For 64bit and Python 3.7: cx_Freeze‑5.1.1‑cp37‑cp37m‑win_amd64.whl
On your command prompt change directory to the downloaded folder and use the command:
pip install cx_Freeze‑5.1.1‑cp37‑cp37m‑win_amd64.whl
For further description on installing from wheel, check the following link: https://pip.pypa.io/en/latest/user_guide/#installing-from-wheels
The same method will solve your problem to install scipy.
It seems that this problem occurs because the version on PyPI isn't up to date.
It works for me when I manually download it from the master branch on GitHub.
pip install --upgrade git+https://github.com/anthony-tuininga/cx_Freeze.git#master
Got this answer from issue #407 published on the GitHub page.
I tried Nischal's solution (which worked) but then ran into more errors down the line.
I then rolled back python to 3.6-32bit and everything worked flawlessly, just a heads up to whoever else gets this, unless you can get cx_freeze 6.0 installed it may be easier to rollback to python3.6 (or make a virtualenv of it).
I downloaded 32 bit installer when 64 bit didn't work.
pip install cx_Freeze-5.1.1-cp37-cp37m-win32.whl
This works fine for me. So I guess no need to downgrade to Python 3.6
I am using Python 3.7 (64-bit)
Download cx_Freeze here (depending on your Python version):
And paste this .whl file in working directory.
Open command prompt, paste following command and press enter:
pip install cx_Freeze-5.1.1-cp37-cp37m-win_amd64.whl
Please note that this command is for Python 3.7(64-bit)
Output should look like:
Processing c:\users\Python37\cx_freeze-5.1.1-cp37-cp37m-win_amd64.whl*
Installing collected packages: cx-Freeze*
Successfully installed cx-Freeze-5.1.1*
I tried to install face recognition in python 2.7.but i am getting the below errorenter image description here
Can you install CMake from the below given link and then try again? It seems CMake which is needed to build the dlib extension is missing on your system.
You can download and install CMake from here:
https://cmake.org/download/
Possible ., python 2.7 provide more features to face recognition than python 3.5 version
we can use pip installer to install all of the packages andexecute it