简体   繁体   English

Python Pylenium package 安装失败:“AttributeError: 'Scheme' object has no attribute 'conftest.py'”

[英]Python Pylenium package installation failure: “AttributeError: 'Scheme' object has no attribute 'conftest.py'”

Trying to install package with following command and got an error尝试使用以下命令安装 package 并出现错误

pip install pyleniumio pip 安装pyleniumio

ERROR: Exception:
Traceback (most recent call last):
  File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\cli\base_command.py", line 188, in _main
    status = self.run(options, args)
  File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\cli\req_command.py", line 185, in wrapper
    return func(self, options, args)
  File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\commands\install.py", line 407, in run
    use_user_site=options.use_user_site,
  File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\req\__init__.py", line 71, in install_given_reqs
    **kwargs
  File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\req\req_install.py", line 811, in install
    direct_url=direct_url,
  File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\operations\install\wheel.py", line 630, in install_wheel
    direct_url=direct_url,
  File "c:\users\mi\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\operations\install\wheel.py", line 452, in install_unpacked_whee
l
    dest = getattr(scheme, subdir)
AttributeError: 'Scheme' object has no attribute 'conftest.py'

Some python packages require other ways, for example, the POT package requires a specific C++ compiler to install.一些 python 包需要其他方式,例如 POT package 需要特定的 C++ 编译器来安装。 Make sure you read the entire instructions and have everything you need.确保您阅读了完整的说明并拥有所需的一切。 Another thing that works for me if you have all the requirements and you are running Linux like me, you can just simply lead your terminal to where the file is and just run for example python package.py and it installs.如果您有所有要求并且像我一样运行 Linux,那么另一件事对我有用,您可以简单地将终端引导到文件所在的位置,然后运行例如python package.py并安装它。 Hopefully, this helped you and you can install your package.希望这对您有所帮助,您可以安装 package。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pytest-bdd--> Selenium Webdriver python AttributeError: 'NoneType' object has no attribute 'execute_script' 从 conftest.py 调用 pytest 夹具 - pytest-bdd--> Selenium Webdriver python AttributeError: 'NoneType' object has no attribute 'execute_script' calling pytest fixture from conftest.py 从 peer package 导入 conftest.py - Import conftest.py from peer package 如何将conftest.py中的webdriver对象合并到Selenium中 - How to incorporate webdriver object from conftest.py in selenium AttributeError:通过 setup.py 脚本安装 Python 包时,“list”对象没有属性“split” - AttributeError: 'list' object has no attribute 'split' when installing a Python package via a setup.py script Python安装问题? AttributeError:“模块”对象没有属性“ MINYEAR” - Python installation issue? AttributeError: 'module' object has no attribute 'MINYEAR' 为子目录中的测试定义一个conftest.py - Defining a single conftest.py for tests in subdirectories 除了 pytest 的测试 package 之外,conftest.py 文件是否可以放在另一个 package 中? - Can the conftest.py file be put in another package aside the tests package for pytest? 无法在Windows上导入conftest.py - Cannot import conftest.py on Windows 在pytest中,conftest.py文件有什么用? - In pytest, what is the use of conftest.py files? conftest.py ImportError:没有名为Foo的模块 - conftest.py ImportError: No module named Foo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM