New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ImportError: No module named tools.setup_helpers.env" when "python setup.py egg_info" #9444
Comments
Hello Amir, can you provide more details about the install process you followed up until this point? |
@amirtaherkhani what are you trying to do? If you want to build Caffe2 you have to use "FULL_CAFFE2=1 python setup.py" |
I have the same issue when I just put
|
Same here with pip install caffe2
|
Does it work if you do "FULL_CAFFE2=1 python setup.py install" instead? |
@pjh5 is there a way to modify the pip setup command ? I exported the variable FULL_CAFFE2=1 but according to your command I still have to replace |
Why do you want to use egg_info? My understanding was that |
Thank you for your answer. My comment wasn't very clear : how should I use the pip command such that I can launch the |
The command you need to use is "FULL_CAFFE2=1 python setup.py install" in the Pytorch root directory. |
I use |
@lcxywfe can you post a new issue with the full error message that you are getting? Also please read https://caffe2.ai/docs/faq.html#null__how-do-python-installations-work ; we advise you to not use sudo when installing via setuptools. |
@nathlacroix I'd like to know the answer to this too. I am having the same problem and opened an issue on stackoverflow. |
When I try "FULL_CAFFE2=1 python setup.py install" I get: "'FULL_CAFFE2' is not recognized as an internal or external command, operable program or batch file." I've tried running it from the Pytorch root dir but still get the same. Where exactly do you run that command, and should I be using my ordinary Anaconda prompt? |
What shell are you using? Can you do |
The command
simply sets the environment variable 'FULL_CAFFE2' to 1 and then calls 'python setup.py install', so if it is not recognized as a command then you are not running in bash or shell. Your error message references a batch file, so is this Windows? This may not be supported syntax on Windows. Anyways, the env variable FULL_CAFFE2 no longer affects our build process at all. All the advice earlier in this thread is obsolete by now, so if you are getting an error message during build please open a new issue. |
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/25/n99fqy7d35x3zp9209b8q0jc0000gn/T/pip-install-hBquje/caffe2/
The text was updated successfully, but these errors were encountered: