Use pip instead of the deprecated easy_install
See original GitHub issueInstead of python setup.py develop as indicated in https://github.com/open-mmlab/OpenPCDet/blob/master/docs/INSTALL.md#install-pcdet-v05 users should be instructed to use
python3 -m pip install --user -e .
Otherwise, the users receive an error:
/<home>/.local/lib/python3.8/site-packages/setuptools/command/easy_install.py:157: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
Additionally, even when running pip install -e (which is equivalent to python setup.py develop, I am getting the following error (in either case):
Installing collected packages: pcdet
Running setup.py develop for pcdet
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
running develop
/home/ma/.local/lib/python3.8/site-packages/setuptools/command/easy_install.py:157: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/ma/pcdet-object-detection-ros-docker/pcdet-object-detection-ros/OpenPCDet/setup.py", line 34, in <module>
setup(
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 985, in run_command
cmd_obj.ensure_finalized()
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/command/develop.py", line 52, in finalize_options
easy_install.finalize_options(self)
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 276, in finalize_options
self._fix_install_dir_for_user_site()
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 382, in _fix_install_dir_for_user_site
self.create_home_path()
File "/home/ma/.local/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1338, in create_home_path
if path.startswith(home) and not os.path.isdir(path):
AttributeError: 'int' object has no attribute 'startswith'
[end of output]
I was not able to find a fix for this problem.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
pip vs easy_install
easy_install, now deprecated, was released in 2004 as part of setuptools. It was notable at the time for installing packages from PyPI using...
Read more >Easy Install - setuptools 65.6.3.post20221220 documentation
Easy Install is deprecated. Do not use it. Instead use pip. If you think you need Easy Install, please reach out to the...
Read more >python - Why use pip over easy_install?
Trying to install distribute will just install setuptools instead. easy_install itself is only quasi-maintained. All of the cases where pip used ...
Read more >Setup.py install deprecated, must use pip
Use build and pip and other standards-based tools. warnings.warn(. /usr/lib/python3.9/site-packages/setuptools/command/easy_install.py:156: ...
Read more >Which Installer is Better? Pip or Easy Install
It also detected that we ran it as a regular user instead of as root and installed Pillow for this user only. Installing...
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

I had the same issue with python 3.9. I could solve it by installing setuptools==60.7.0 (which was released earlier today).
This issue was closed because it has been inactive for 14 days since being marked as stale.