Jan-09-2018, 06:05 AM
Hello,
I am trying to compile a python script and I have to install a module called "main". when I try to install it with pip I am getting the following erorr :
How can I fix this ?
Thank you in advance for your help
I am trying to compile a python script and I have to install a module called "main". when I try to install it with pip I am getting the following erorr :
Quote:ImportError: cannot import name 'Main'
PS C:\pdfconvert_source> pip install main
Collecting main
Using cached main-0.1.tar.gz
Installing collected packages: main
Running setup.py install for main ... error
Complete output from command c:\users\mederic\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Mederic\\AppData\\Local\\Temp\\pip-build-1096gtzi\\main\\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\Mederic\AppData\Local\Temp\pip-xfhli32r-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_scripts
creating build
creating build\scripts-3.6
error: file 'C:\Users\Mederic\AppData\Local\Temp\pip-build-1096gtzi\main\main' does not exist
----------------------------------------
Command "c:\users\admin\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-build-1096gtzi\\main\\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\Admin\AppData\Local\Temp\pip-xfhli32r-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-build-1096gtzi\main\
PS C:\pdfconvert_source>
How can I fix this ?
Thank you in advance for your help