久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

anaconda上使用pip安裝python包有什么效果?

What is the effect of using pip to install python packages on anaconda?(anaconda上使用pip安裝python包有什么效果?)
本文介紹了anaconda上使用pip安裝python包有什么效果?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我安裝了新的 anaconda v4.4.我意識到可以使用 conda 和 pip 安裝 python 包.使用anaconda時使用pip安裝python包而不是conda有什么效果?pip 安裝的庫會停止運(yùn)行嗎?我正在使用 python v3

I have installed a fresh anaconda v4.4. I realized that python packages can be installed using both conda and pip. What is the effect of using pip to install python packages instead of conda when using anaconda? Will the pip-installed libraries cease to function? I am using python v3

我不認(rèn)為這個問題與 重復(fù)pip 和 conda 有什么區(qū)別?該問題解釋了 pip 和 conda 之間的區(qū)別,但沒有談?wù)撛诳梢允褂?conda 時使用 pip 的效果.

I don't think the question is a duplicate of What is the difference between pip and conda? That question explains the difference between pip and conda but does not talk about the effect of using pip when conda can be used.

推薦答案

如果你使用 pip 安裝 vs conda,一切都可能繼續(xù)工作.但是,Conda 無法管理 pip 已安裝的依賴項 - 它無法升級或刪除它們.更重要的是,conda 會安裝一個包即使它已經(jīng)用 pip 安裝了!試試這個測試:

Everything might keep working if you use pip to install vs conda. However, Conda cannot manage dependencies that pip has installed - it cannot upgrade them, or remove them. More importantly, conda will install a package even if its already been installed with pip! Try this test:

conda create -n testenv python=3
conda activate testenv
pip install numpy
conda install scipy

您將從第三個命令中看到 conda 想要重新安裝 NumPy,即使它已經(jīng)使用 pip 安裝.如果存在鏈接不同的 C 庫或類似的東西,這可能會導(dǎo)致問題.一般來說,只要有可能,就使用 conda 將軟件包安裝到 conda 環(huán)境中.

You will see from the third command that conda will want to re-install NumPy, even though it has already been installed with pip. This can cause problems if there are C libraries whose linking is different, or something like that. In general, whenever possible, use conda to install packages into conda environments.

這篇關(guān)于anaconda上使用pip安裝python包有什么效果?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現(xiàn)問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節(jié)點(diǎn))
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應(yīng)并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標(biāo)記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 久久久国产精品入口麻豆 | 美女福利网站 | 国产一区免费视频 | 午夜欧美a级理论片915影院 | 成人三级网址 | 毛片国产 | 日日骚av | 日韩有码一区 | 亚洲a视频| 亚洲国产精选 | 欧美aaa | 91视频一区二区 | 一区二区三区欧美 | 久久久人成影片免费观看 | 欧美一区二区在线播放 | 成人福利 | 久久久国产精品视频 | 欧美综合在线视频 | 男女羞羞视频网站 | 中文字幕不卡视频在线观看 | 午夜精品视频在线观看 | 黄色在线免费播放 | 欧美一区二区三区免费电影 | 国产一区二区精品 | 中国一级大黄大片 | 女人av| 亚洲欧美精品一区 | 黄网站在线观看 | 日本三级电影免费观看 | 婷婷中文在线 | 婷婷开心激情综合五月天 | 一区二区福利视频 | 在线观看成人小视频 | 亚洲国产成人久久综合一区,久久久国产99 | 日韩中文字幕免费在线观看 | www久久久 | 欧美色综合一区二区三区 | 成人午夜毛片 | 午夜看片| 国产999精品久久久久久绿帽 | 日本不卡一区二区三区在线观看 |