首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

python setuptools安装与

Python本身自带了一套工具distutils ,用于发布 Python 应用程序。但 distutils 没有提供定义其它依赖包的功能,setuptools 的真正优点并不在于实现distutils 所能实现的功能——尽管它的确增强了distutils的功能并简化了setup.py 脚本中的内容。setuptools 最大的优势是它在包管理能力方面的增强。它可以使用一种更加透明的方法来查找、下载并安装依赖包;并可以在一个包的多个版本中自由进行切换,这些版本都安装在同一个系统上;也可以声明对某个包的特定版本的需求;还可以只使用一个简单的命令就能更新到某个包的最新版本。 简单来说,Python setuptools可以看做是增强版的distutils,用来管理Python的各种包。

02

ROS2+Gazebo11+Car+OpenCV巡线识别和速度转向控制学习

Starting >>> prius_line_following /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead   warnings.warn( /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead   warnings.warn( /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead   warnings.warn( /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead   warnings.warn( running egg_info writing ../build/prius_line_following/prius_line_following.egg-info/PKG-INFO writing dependency_links to ../build/prius_line_following/prius_line_following.egg-info/dependency_links.txt writing entry points to ../build/prius_line_following/prius_line_following.egg-info/entry_points.txt writing requirements to ../build/prius_line_following/prius_line_following.egg-info/requires.txt writing top-level names to ../build/prius_line_following/prius_line_following.egg-info/top_level.txt reading manifest file '../build/prius_line_following/prius_line_following.egg-info/SOURCES.txt' writing manifest file '../build/prius_line_following/prius_line_following.egg-info/SOURCES.txt' running build running build_py copying prius_line_following/line_following.py -> /home/zhangrelay/ros_ws/ROS2-Ultimate-Mobile-Robotics-Course-for-Beginners-OpenCV-main/prius_line_following/build/prius_line_following/build/lib/prius_line_following running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and oth

01

/root/.python-eggs 报

Traceback (most recent call last):   File "/home/himalayas/fdsearch/fdsearch/bin/fdsearch", line 34, in <module>     from fdsearch import wsgi   File "/home/himalayas/fdsearch/fdsearch/wsgi.py", line 32, in <module>     import fdsearch.domain   File "/home/himalayas/fdsearch/fdsearch/domain/__init__.py", line 20, in <module>     from notify_handler import NotifyHandler   File "/home/himalayas/fdsearch/fdsearch/domain/notify_handler.py", line 23, in <module>     from cjson import encode as json_encode   File "build/bdist.linux-x86_64/egg/cjson.py", line 7, in <module>   File "build/bdist.linux-x86_64/egg/cjson.py", line 4, in __bootstrap__   File "/home/himalayas/virtualenv/python2.7-fd/lib/python2.7/site-packages/pkg_resources.py", line 945, in resource_filename     self, resource_name   File "/home/himalayas/virtualenv/python2.7-fd/lib/python2.7/site-packages/pkg_resources.py", line 1633, in get_resource_filename     self._extract_resource(manager, self._eager_to_zip(name))   File "/home/himalayas/virtualenv/python2.7-fd/lib/python2.7/site-packages/pkg_resources.py", line 1661, in _extract_resource     self.egg_name, self._parts(zip_path)   File "/home/himalayas/virtualenv/python2.7-fd/lib/python2.7/site-packages/pkg_resources.py", line 1025, in get_cache_path     self.extraction_error()   File "/home/himalayas/virtualenv/python2.7-fd/lib/python2.7/site-packages/pkg_resources.py", line 991, in extraction_error     raise err pkg_resources.ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache:   [Errno 13] Permission denied: '/root/.python-eggs' The Python egg cache directory is currently set to:   /root/.python-eggs

01
领券