一个有意卸载的包。

uninstallable的Python项目详细描述


uninstallable:可卸载的python控制盘!

安装不适用于尝试在其上安装的平台。很好的一天!

$ pip install --user ...
...
Collecting uninstallable>0; platform_system == "..." (from ...)
  Downloading ...
Collecting pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "..."->...)
  Could not find a version that satisfies the requirement pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "Linux"->...) (from versions: )
No matching distribution found for pywin32>=1.0; platform_system == "Linux" (from uninstallable>0; platform_system == "Linux"->...)
$ pip install --user ...
...
Collecting uninstallable>0; platform_system != "..." (from ...)
  Could not find a version that satisfies the requirement uninstallable>0; platform_system != "..." (from ...) (from versions: )
No matching distribution found for uninstallable>0; platform_system != "..." (from ...)

为什么?????????

这个包的目的是绕过python控制盘的限制 规范。它的存在是为了防止纯Python的成功安装。 平台上的轮子与包裹不相容。

怎么做?

pypi不允许上载平台类型无法识别的python控制盘,因此 要强制冲突:

  • 我们只为manylinux1_x86_64平台构建
  • 当 平台是Linux

这会导致找不到适用的uninstallable 包文件,或实现包具有不能为 安装.

建筑

python setup.py bdist_wheel -p manylinux1_x86_64

用法

fromsetuptoolsimportsetupsetup(name='...',version='1.0.0',description='...',long_description=open('README.md').read(),long_description_content_type='text/markdown',author='...',author_email='...',url='...',license='...',python_requires='...',install_requires=[...'uninstallable > 0;platform_system!="Linux"',],...

功能

  • 没有!

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java组织。openqa。硒。遥远的UnreachableBrowserException如何定义EXE路径?   java Camel AdviceWith不使用指定文件替换端点   基于字符串的java图像加载   Java中的启发式算法,计算8个谜题状态的线性冲突   java为什么不支持文件。probeContentType返回null   JPA@EntityListeners、@PrePersist和Spring@RepositoryEventHandler、@HandleBeforeSave之间的java差异   可能前缀的Java字符串到字符串[]   安装rJava | Makefile时发生java错误。全部:38:target’libjri的配方。所以他失败了   Java公共静态void main()   java如何覆盖txt文件中的某些单词   java如何获得循环中生成的字符值之和?   java Log4j创建另一个具有相同属性的appender   java如何在从Axis2 Web服务客户端通过代理服务器调用Web服务时设置代理设置?   在Windows上安装Elasticsearch时发生java错误   java如何向EditText组件添加TextChangedListener?