Raise "error: could not create 'build': File exists" while installing
See original GitHub issueWhen I firstly install trfl, it raised error almost at the end of installation,
Failed building wheel for trfl Running setup.py clean for trfl Failed to build trfl Installing collected packages: trfl Running setup.py install for trfl ... error
The further issue is like
running install running build running build_py creating build error: could not create 'build': File exists
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (4 by maintainers)
Top Results From Across the Web
Build fails with error: could not create 'build': File exists #20
OS: macOS High Sierra Python 3.6.4 (Anaconda) Trying to build from source: ~/Repos/python-pachyderm $ python setup.py install ...
Read more >python setup path problem - Stack Overflow
I'm guessing that the build process created some files with root ownership when you ran this: sudo make install. When running as a...
Read more >python setup.py egg_info did not run successfully. - You.com ...
However, when I try to install pygame, I get the error "subprocess-exited-with-error" and at the end it states "Microsoft Visual C++ 14.2 or...
Read more >Changelog - pip documentation v22.3.1
Do not raise error when there are no files to remove with pip cache purge/remove . Instead log a warning and continue (to...
Read more >Built-in Exceptions — Python 3.11.1 documentation
This exception is raised when a system function returns a system-related error, including I/O failures such as “file not found” or “disk full”...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We managed to reproduce the issue, which seems to only affect the
python3
prebuilt binaries forMacOS
. We will investigate this further (note that, in the meanwhile, building for MacOS locally is still possible for both python2 and python3 according to the instructions inINSTALL.md
).Hi @abdel,
About the difference between your wheel and our wheel:
intel
is used for a universal build with thei386
andx86_64
architectures (from https://docs.python.org/2/distutils/apiref.html#module-distutils.util) so I think that this shouldn’t be an issue.However, when I install from pip on my personal MacOS laptop I can see
_gen_distribution_ops.so
.Just to double check, in your message you mention you can’t find
gen_distribution_ops.so
; it should be_gen_distribution_ops.so
, with an underscore, both when you build locally as well as when you install from pip. Can you verify that there is no_gen_distribution_ops.so
?