简体   繁体   English

当我尝试在 python 上安装模块时,错误不断出现

[英]Error keeps on showing up when i try to install a module on python

I am trying to install the modules shodan and requests but this error keeps showing up and i do not know why.我正在尝试安装模块 shodan 和请求,但此错误一直出现,我不知道为什么。 It worked fine for my PC but when i tried it on my laptop this error keeps showing up.它在我的 PC 上运行良好,但当我在我的笔记本电脑上尝试时,这个错误不断出现。

I went to the scripts director of python and entered the following command:我去了 python 的脚本主管并输入以下命令:

python -m pip install shodan

and

python -m pip install requests

However, this error keeps showing up:但是,此错误不断出现:

Traceback (most recent call last):
  File "C:\Users\TPBYOD\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\TPBYOD\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\TPBYOD\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pip\__main__.py", line 16, in <module>
    from pip._internal import main as _main  # isort:skip # noqa
  File "C:\Users\TPBYOD\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pip\_internal\__init__.py", line 19, in <module>
    from pip._vendor.urllib3.exceptions import DependencyWarning
  File "C:\Users\TPBYOD\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pip\_vendor\urllib3\__init__.py", line 8, in <module>
    from .connectionpool import (
  File "C:\Users\TPBYOD\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 7, in <module>
    from socket import error as SocketError, timeout as SocketTimeout
  File "C:\Users\TPBYOD\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 49, in <module>
    import _socket
ImportError: DLL load failed: %1 is not a valid Win32 application.

i've resolved the issue already.我已经解决了这个问题。 Thank you.谢谢你。 All i did was reinstall my python and ensured that python was added to both my current user's variable and my system variables我所做的只是重新安装我的 python 并确保将 python 添加到我当前用户的变量和我的系统变量中

This might be because your OS is 32 bit and the python version your using is 64 bit.这可能是因为您的操作系统是 32 位,而您使用的 python 版本是 64 位。 Try installing 32 bit version of python and installing these libraries.尝试安装 python 的 32 位版本并安装这些库。

Try running the pip package manager directly:尝试直接运行 pip package 管理器:

pip install shodan

暂无
暂无

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

相关问题 无法在终端上安装或找到 python,当我尝试安装时出现 Java 错误 - Unable to install or find python on terminal, Java error shows up when I try to install 我是 python 的新手,这个错误不断出现 - I am new to python and this error keeps showing up 当我尝试使用 pip 安装 python 模块时,会导致错误。 我该如何解决? - When I try to install python module using pip, it causes error. How can I fix it? 在Linux生产服务器中,当我尝试安装mysql-python模块时出现错误 - In the linux server for production i got error when i try to install mysql-python module "当我尝试使用 Python 3.8 在 jupyter notebook 中安装 PySimpleGUI (4.53.0) 时,错误“没有返回名为‘PySimpleGUI’的模块" - When I try to install PySimpleGUI (4.53.0) in jupyter notebook using Python 3.8 the error "no module named 'PySimpleGUI' is returned 尝试在linux中安装Fabric时出现Fabric(python模块)错误 - Fabric (python module) error when try to install fabric in linux 没有名为 Appkit 的模块。 如果我尝试在 pycharm 中安装它,它会一直说“错误:命令出错,退出状态为 1:” - No module named Appkit. If I try to install it in pycharm it keeps saying "ERROR: Command errored out with exit status 1:" 每当我尝试为python模块安装mysql时,此错误是什么? - What is this error whenever I try to install mysql for python module? 当我尝试在 Python 3.5.1 中安装 paramiko 模块时,我得到一个无效的语法并且无法安装它 - When I try to install the paramiko module in Python 3.5.1, I get an invalid syntax and cannot install it 当我尝试安装 cloudgenix_config 时出现 Python 错误 - Python error when I try to install cloudgenix_config
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM