国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【selenium】pip install selenuim失敗問(wèn)題解決

這篇具有很好參考價(jià)值的文章主要介紹了【selenium】pip install selenuim失敗問(wèn)題解決。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

背景

????????windows系統(tǒng)安裝PyCharm和python(3.12版本),配置python環(huán)境變量。

????????PyCharm引入chromedriver,PyCharm使用pip install selenium下載selenium。

報(bào)錯(cuò)信息

安裝selenium報(bào)錯(cuò)信息:

 Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Anna\AppData\Local\Temp\pip-install-3j1kwnjl\cffi_4cd60f11518743e2b17a64647b3a4b12\setup.py", line 126, in <module>
          if sys.platform == "win32" and uses_msvc():
                                         ^^^^^^^^^^^
        File "C:\Users\Anna\AppData\Local\Temp\pip-install-3j1kwnjl\cffi_4cd60f11518743e2b17a64647b3a4b12\setup.py", line 105, in uses_msvc
          return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\xx\code\PycharmProjects\venv\Lib\site-packages\setuptools\_distutils\command\config.py", line 223, in try_compile
          self._compile(body, headers, include_dirs, lang)
        File "C:\xx\code\PycharmProjects\venv\Lib\site-packages\setuptools\_distutils\command\config.py", line 128, in _compile
          self.compiler.compile([src], include_dirs=include_dirs)
        File "C:\xx\code\PycharmProjects\venv\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 343, in compile
          self.initialize()
        File "C:\xx\code\PycharmProjects\venv\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
          vc_env = _get_vc_env(plat_spec)
                   ^^^^^^^^^^^^^^^^^^^^^^
        File "C:\xx\code\PycharmProjects\venv\Lib\site-packages\setuptools\msvc.py", line 214, in msvc14_get_vc_env        
          return _msvc14_get_vc_env(plat_spec)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\xx\code\PycharmProjects\venv\Lib\site-packages\setuptools\msvc.py", line 168, in _msvc14_get_vc_env       
          raise distutils.errors.DistutilsPlatformError(
      distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

解決過(guò)程

? ? ? ? 度娘上看了各種類(lèi)似報(bào)錯(cuò)的處理方法,跟著折騰了一遍,花了一整天都沒(méi)搞定,郁悶了。

????????第二天繼續(xù)處理,看到上文python版本標(biāo)紅,敏感的小伙伴可能發(fā)現(xiàn)為什么要標(biāo)紅了。因?yàn)檫@特么就是我忙碌了一整天一無(wú)所獲,搞不定selenium安裝的罪魁禍?zhǔn)祝。。?/p>

? ? ? ? 再搜到一篇文章提到了python版本的問(wèn)題,另想起以前一起寫(xiě)代碼的小伙伴們都說(shuō)過(guò),python版本過(guò)高可能會(huì)有問(wèn)題的。果斷不再?gòu)膱?bào)錯(cuò)信息入手,換個(gè)思路,直接給python版本降級(jí)。。卸載掉3.12版本的python,重新安裝3.9版本的。

? ? ? ? python官方下載是真的慢,用國(guó)內(nèi)鏡像,python下載地址:CNPM Binaries Mirror

? ? ? ? pycharm里繼續(xù)pip install selenum,重啟pycharm,搞定了!?。?!

????????selenium這不就有了么~~~~

pip安裝selenium報(bào)錯(cuò),Python,selenium,pip,測(cè)試工具文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-696299.html

到了這里,關(guān)于【selenium】pip install selenuim失敗問(wèn)題解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • [Python]pip install pygame安裝報(bào)錯(cuò)解決方案

    pip install pygame報(bào)錯(cuò)提示: 解決方案:whl安裝 下載pygame安裝包 下載地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame 我安裝的python版本3.11.1,win系統(tǒng)64位。 選擇對(duì)應(yīng)版本:pygame?2.1.2?cp311?cp311?win_amd64.whl 將安裝包放到指定路徑后進(jìn)行安裝 問(wèn)題原因和解決思路參考: https://q.

    2023年04月09日
    瀏覽(21)
  • pip3 install paramiko 安裝失敗

    running build_ext generating cffi module ‘build/temp.linux-x86_64-cpython-37/cryptography.hazmat.bindings._openssl.c’ creating build/temp.linux-x86_64-cpython-37 running build_rust error: can’t find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from i

    2024年02月05日
    瀏覽(32)
  • pip install 報(bào)錯(cuò): Microsoft Visual C++ 14.0 is required (10M安裝包,5分鐘解決)

    pip install 報(bào)錯(cuò): Microsoft Visual C++ 14.0 is required (10M安裝包,5分鐘解決)

    目錄 問(wèn)題現(xiàn)象 ?解決辦法: 1.下載文件包 2. 安裝 3. 安裝好之后 pip install 報(bào)錯(cuò): Microsoft Visual C++ 14.0 is required 系統(tǒng): win10 我們?cè)趐ip安裝的時(shí)候有時(shí)候會(huì)報(bào)錯(cuò), 如下: 這是缺少C++庫(kù)導(dǎo)致的,解決辦法也很簡(jiǎn)單 網(wǎng)上一堆教程,讓你下載幾個(gè)G的?Visual Studio, 又慢又麻煩,而且還

    2024年02月07日
    瀏覽(27)
  • windows環(huán)境 pip安裝mysqlclient失敗問(wèn)題記錄及解決方案

    windows環(huán)境 pip安裝mysqlclient失敗問(wèn)題記錄及解決方案

    直接下載安裝mysqlclient whl文件進(jìn)行安裝 https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient 注意:cp37即表示python3.7的版本,其他版本號(hào)同理,win32表示windows 32位的, win_amd64表示windows 64位 我這里是python3.7的版本,系統(tǒng)是64位所以選擇 mysqlclient?1.4.6?cp37?cp37m?win_amd64.whl 結(jié)果如下:

    2024年02月11日
    瀏覽(27)
  • 解決npm install安裝node-sass包容易失敗的問(wèn)題

    解決npm install安裝node-sass包容易失敗的問(wèn)題

    ?具體問(wèn)題如下: 2、問(wèn)題分析 npm版本過(guò)高 3、問(wèn)題解決 npm install npm@6.14.10 -g 如果還提示出現(xiàn) python 的信息,說(shuō)明還需要安裝python,去python官網(wǎng)下載對(duì)應(yīng)版本的安裝包安裝即可,一般是2.7版本。python官網(wǎng)下載 如果提示 這些等亂七八糟的基本上就是node-sass 版本沖突問(wèn)題 直接去

    2024年04月13日
    瀏覽(98)
  • pip git+install 報(bào)錯(cuò)解決

    pip git+install 報(bào)錯(cuò)解決

    有時(shí)候用pip git + install 會(huì)報(bào)錯(cuò)。以下是解決方案:? 可以分為兩種方式: 方法1: (1)對(duì)于已經(jīng)安裝git 的同學(xué),可以 git clone? 網(wǎng)絡(luò)地址 (2)cd 到下載的文件,再 pip setup.py install? 這里注意兩點(diǎn) a. cd 文件夾下存在?setup.py文件 b 如果按照python的時(shí)候有管理員權(quán)限可以?pip se

    2024年02月11日
    瀏覽(19)
  • Python pip install 安裝包報(bào)錯(cuò)ERROR: Could not find a version that satisfies the requirement XXX解決方法

    Python pip install 安裝包報(bào)錯(cuò)ERROR: Could not find a version that satisfies the requirement XXX解決方法

    使用 pip 安裝 python 包時(shí),經(jīng)常會(huì)出現(xiàn)如下錯(cuò)誤: 本次在用pip命令(pip install pdf2word)安裝pdf2docx包的時(shí)候出錯(cuò) 因?yàn)楹髞?lái)安裝好了,所以故意安裝一個(gè)錯(cuò)誤的pdf2word,來(lái)整個(gè)圖 可能是國(guó)內(nèi)網(wǎng)絡(luò)不穩(wěn)定,直接導(dǎo)致報(bào)錯(cuò),而不是環(huán)境沖突。報(bào)錯(cuò)信息看起來(lái)容易把人誤導(dǎo)到解決包環(huán)境

    2024年01月18日
    瀏覽(107)
  • 【git】pip install git+https://github.com/xxx/xxx替換成本地下載編譯安裝解決網(wǎng)絡(luò)超時(shí)問(wèn)題

    【git】pip install git+https://github.com/xxx/xxx替換成本地下載編譯安裝解決網(wǎng)絡(luò)超時(shí)問(wèn)題

    目錄 ???? 背景? ?? ??作用 ???? 問(wèn)題 ????解決方案? ??方法一 ??方法二 ????我的解決方案 整理不易,歡迎一鍵三連?。。?送你們一條美麗的--分割線(xiàn)-- ? ? ? ? 通常在安裝某些模型或者模塊時(shí),通常最方便的方式就是通過(guò) pip install git+https://github.com/xxx/xxx 的方式

    2024年02月04日
    瀏覽(23)
  • 解決使用conda env create -f environment.yml安裝依賴(lài)包時(shí)Installing pip dependencies過(guò)慢的問(wèn)題

    解決使用conda env create -f environment.yml安裝依賴(lài)包時(shí)Installing pip dependencies過(guò)慢的問(wèn)題

    問(wèn)題描述 使用conda env create -f environment.yml安裝依賴(lài)包時(shí),會(huì)遇到Installing pip dependencies過(guò)慢的問(wèn)題。這是由于沒(méi)有使用鏡像源。如下圖所示 解決方案 可以嘗試對(duì)environment.yml文件進(jìn)行以下修改,添加鏡像源即可: 將channels改為(注意要把default去掉): 并在pip的依賴(lài)包里添加上鏡

    2024年02月12日
    瀏覽(20)
  • python pip install 總是報(bào)錯(cuò)及解決辦法

    python pip install 總是報(bào)錯(cuò)及解決辦法

    情況一 pip 正常安裝完成,但是在安裝庫(kù)的時(shí)候出現(xiàn)如下界面 ?運(yùn)行以下命令來(lái)升級(jí)pip 情況二 ?出現(xiàn)這種情況的原因:電腦里面同時(shí)存在著兩個(gè)版本,python2和python3,安裝的庫(kù)在下載的時(shí)候找不到對(duì)應(yīng)的版本 解決方法: 指定版本號(hào)即可 python -3 -m pip install 安裝的庫(kù) python -3 -

    2024年02月14日
    瀏覽(24)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包