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

如何在 Visual Studio 2017 中將包添加到 python

How to add a package to python in Visual Studio 2017(如何在 Visual Studio 2017 中將包添加到 python)
本文介紹了如何在 Visual Studio 2017 中將包添加到 python的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我剛剛安裝了新的 VS2017 Preview 并導(dǎo)入了一個 Python 項目.這個項目有很多導(dǎo)入語句,但是 VS2017 確實在一些導(dǎo)入包中顯示錯誤,例如 cv2、socketio、eventlet、eventlet.wsgi.這個 Python 項目在我的 Anaconda 環(huán)境中運行良好,在 VS2017 之外.我需要在 Windows 中安裝 OpenCV 2、socketio 等嗎?或者VS2017環(huán)境下有沒有像pip、anaconda、apt-get這樣的解決方案可以自動安裝未解析的包?我還注意到可以將 Anaconda 添加到創(chuàng)建的 VS 項目中.VS 中的這個 Anaconda 可以幫助安裝缺少的軟件包嗎?問候.

I just installed the new VS2017 Preview and imported a Python project. This project has many import statements but VS2017 does show error in some import packages like cv2, socketio, eventlet, eventlet.wsgi. This Python project runs fine, out of VS2017, in my Anaconda environment. Do I need to install OpenCV 2, socketio, etc in Windows? Or is there a solution like pip, anaconda, apt-get, in the VS2017 environment that can automate the installation of unresolved package? I also noticed that it is possible to add Anaconda to VS project created. Can this Anaconda inside VS help to install the missing packages? Regards.

推薦答案

可以,但并不完美.

首先,您需要調(diào)出 Python 環(huán)境菜單,可以通過以下方式訪問:

Firstly you need to bring up the Python Environments menu which can be accessed by going:

工具 -> Python -> Python 環(huán)境

Tools -> Python -> Python Environments

它應(yīng)該會彈出一個側(cè)邊欄(取決于您如何設(shè)置 VS).大約一半的地方應(yīng)該有一個帶有概述"文本的下拉框.單擊它,您可以選擇包".這將在其下方彈出一個文本框,允許您使用標(biāo)準(zhǔn) pip 命令安裝軟件包.

It should bring up a sidebar (depending on how you have VS setup). There should be a dropdown box about half way down with the text "Overview". Click on that and you can select "Packages". This will bring up a textbox under it that will allow you to use standard pip commands to install packages.

如果您在 Windows 上,但某些軟件包會增加一個步驟.由于 pip 在 Windows 上無法正常工作,因為標(biāo)準(zhǔn) Windows 軟件包站點 (PyPI) 確實還沒有很多常用軟件包的 Windows 輪子.

If you are on Windows though there is one added step for some packages though. As pip does not work well on Windows, due to the fact that the standard Windows package site (PyPI) does not yet have Windows wheels for a lot of common packages.

因此,您最好訪問 Christoph Gohlke 的非官方軟件包站點 和然后下載你需要的包.在本地下載后,只需將本地地址復(fù)制并粘貼到包"下的文本框中.然后它將安裝軟件包,您就可以開始了.

Therefore, you are best off going to Christoph Gohlke's unofficial package site and then downloading the package you need. Once it's downloaded locally just copy and paste the LOCAL address into the textbox under "Packages". It will then install the package and you'll be good to go.

這篇關(guān)于如何在 Visual Studio 2017 中將包添加到 python的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

How to install Selenium in a conda environment?(如何在 conda 環(huán)境中安裝 Selenium?)
get the CUDA and CUDNN version on windows with Anaconda installe(使用 Anaconda installe 在 Windows 上獲取 CUDA 和 CUDNN 版本)
How can I download Anaconda for python 3.6(如何下載適用于 python 3.6 的 Anaconda)
Using two different Python Distributions(使用兩個不同的 Python 發(fā)行版)
How can I install Anaconda aside an existing pyenv installation on OSX?(除了 OSX 上現(xiàn)有的 pyenv 安裝之外,如何安裝 Anaconda?)
Permanently set Python path for Anaconda within Cygwin(在 Cygwin 中為 Anaconda 永久設(shè)置 Python 路徑)
主站蜘蛛池模板: 国产成人一区二区三区 | 日本不卡免费新一二三区 | 国产乱码精品一区二区三区中文 | 中文字幕亚洲专区 | 欧美中文一区 | 日本午夜在线视频 | 中文字幕乱码一区二区三区 | av网站免费观看 | 日韩三级在线 | 日韩精品在线播放 | 国产精品一区二区三区在线 | 国产一区二区三区 | av大片在线 | 欧美v日韩v | 中文字幕av在线 | 亚洲精品二区 | 91在线一区二区 | 国产精品日韩欧美一区二区三区 | 日韩在线h | 伊人网91| 欧美色综合天天久久综合精品 | 国产精品久久久久久亚洲调教 | 波多野吉衣久久 | 日韩三极 | 色婷婷av777 av免费网站在线 | 中文一区 | 亚洲狠狠 | 精品一区二区三区在线视频 | 手机在线一区二区三区 | 久久久久久久久久久成人 | 成人在线中文字幕 | 九九热这里| 亚洲一区二区三区高清 | 97日日碰人人模人人澡分享吧 | 91精品一区二区三区久久久久久 | 亚洲精品电影网在线观看 | 国产一区二区三区视频免费观看 | 日韩精品在线一区 | 性做久久久久久免费观看欧美 | 天天综合91| 国产ts人妖系列高潮 |