當前位置:首頁 » 編程語言 » python如何安裝xlrd

python如何安裝xlrd

發布時間: 2022-04-24 17:44:52

python怎麼安裝xlrd

只要在軟體當中添加後,然後下載安裝就可以使用了。
也可以在應用市場裡面下載安裝。

Ⅱ python 要把xlrd包放在哪裡

Python中安裝xlrd模塊的步驟:
1、從 https://pypi.python.org/pypi/xlrd 下載壓縮

2、解壓所下載的壓縮包

3、CD到解壓目錄,執行 sudo python setup.py install

Ⅲ python 怎麼載入xlrd庫

從https://pypi.python.org/pypi/xlrd下載並解壓對應的安裝包 xlrd-1.1.0.tar.gz
然後執行 python setup.py install
安裝後使用 import xlrd

Ⅳ 怎麼安裝python模塊,如何安裝python模塊,常用安裝方式

推薦使用pip安裝python模塊:

安裝python模塊推薦使用pip

如果您安裝的是python2.7.10以上的版本,默認是安裝了pip的。例如:python2.7.10安裝後,pip默認安裝在C:Python27Scripts目錄下


pip的使用:

使用pip的前提是在cmd窗口中能執行pip,如下圖所示

piphelp

Ⅳ python怎麼導入xlrd模塊

1.下載壓縮包
2、解壓所下載的壓縮包
3、CD到解壓目錄,執行 sudo python setup.py install

Ⅵ Python安裝模塊的幾種方法

首先確定已經在你的電腦上安裝了python,然後配置了python的環境變數.例如:我要安裝的模塊是xlrd
1.把要安裝的包到python的安裝目錄,例如我的C:\Python27,或者在安裝目錄下新建一個文件夾(packages),方便存放導入的模塊。註:我的到C:\Python27\packages
2.運行cmd,cd 到你的安裝目錄,我的C:\Python27\packages\xlrd-0.9.3,輸入python setup.py install,完成
3.打開python中IDLE(Python GUI),輸入import xlrd,無提示表示,安裝成功。

Ⅶ 求助,Python xlrd怎麼安裝,為嘛一直安裝不了

感覺是沒安裝成功,安裝過程可不止這幾行
其實直接把安裝文件裡面的xlrd目錄復制到C:\Python35\Lib\site-packages目錄就可以用了

Ⅷ pip python3 xlrd 怎麼安裝

安裝xlrd和xlwt很簡單,直接【pip install xlrd】和【pip install xlwt】即可。用【pip install xlutils】則會報錯.

Ⅸ python 第三方庫怎麼安裝

【方法一】: 通過setuptools來安裝python模塊
首先下載
NOTE: 最好下載個setuptools,本人是15.2版本,裡麵包含了ez_setup
運行 python ez_setup.py
D:\work\installation\setuptools-15.2\setuptools-15.2>python ez_setup.py > 1.txt
Extracting in c:\users\admini~1\appdata\local\temp\tmpbxikxf
Now working in c:\users\admini~1\appdata\local\temp\tmpbxikxf\setuptools-15.2
Installing Setuptools
......
Copying setuptools-15.2-py2.7.egg to c:\python27\lib\site-packages
setuptools 15.2 is already the active version in easy-install.pth
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\Python27\Scripts
Installing easy_install-2.7.exe script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\setuptools-15.2-py2.7.egg
Processing dependencies for setuptools==15.2
Finished processing dependencies for setuptools==15.2

運行 easy_install py
D:\work>easy_install py #py 為第三方庫文件
Searching for py
Best match: py 1.4.26
Adding py 1.4.26 to easy-install.pth file

Using c:\python27\lib\site-packages
Processing dependencies for py
Finished processing dependencies for py

【方法二】: 通過pip來安裝python模塊
安裝 easy_install pip
D:\work>easy_install pip
Searching for pip
Best match: pip 6.1.1
Processing pip-6.1.1-py2.7.egg
pip 6.1.1 is already the active version in easy-install.pth
Installing pip-script.py script to C:\Python27\Scripts
Installing pip.exe script to C:\Python27\Scripts
Installing pip2.7-script.py script to C:\Python27\Scripts
Installing pip2.7.exe script to C:\Python27\Scripts
Installing pip2-script.py script to C:\Python27\Scripts
Installing pip2.exe script to C:\Python27\Scripts

Using c:\python27\lib\site-packages\pip-6.1.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

運行 pip install xlrd
Usage:
pip <command> [options]

Commands:
install Install packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
search Search PyPI for packages.
wheel Build wheels from your requirements.
zip DEPRECATED. Zip indivial packages.
unzip DEPRECATED. Unzip indivial packages.
help Show help for commands.

General Options:
-h, --help Show help.
--isolated Run pip in an isolated mode, ignoring
environment variables and user configuration.
-v, --verbose Give more output. Option is additive, and can be
used up to 3 times.
-V, --version Show version and exit.
-q, --quiet Give less output.
--log <path> Path to a verbose appending log.
--proxy <proxy> Specify a proxy in the form
[user:passwd@]proxy.server:port.
--retries <retries> Maximum number of retries each connection should
attempt (default 5 times).
--timeout <sec> Set the socket timeout (default 15 seconds).
--exists-action <action> Default action when a path already exists:
(s)witch, (i)gnore, (w)ipe, (b)ackup.
--trusted-host <hostname> Mark this host as trusted, even though it does
not have valid or any HTTPS.
--cert <path> Path to alternate CA bundle.
--client-cert <path> Path to SSL client certificate, a single file
containing the private key and the certificate
in PEM format.
--cache-dir <dir> Store the cache data in <dir>.
--no-cache-dir Disable the cache.
--disable-pip-version-check
Don't periodically check PyPI to determine
whether a new version of pip is available for
download. Implied with --no-index.

【方法三】:直接從網上下載下可執行文件來安裝.
比如說,去 >>> pythonlibs <<< 網站,提供了很多Python非官方包下載,二進制文件,下載安裝方便.

熱點內容
破解exe加密視頻 發布:2025-05-17 11:23:41 瀏覽:976
我的世界伺服器圈太大了怎麼辦 發布:2025-05-17 11:15:21 瀏覽:614
便宜的免費雲伺服器 發布:2025-05-17 11:08:50 瀏覽:777
中國頂級dhcp解析伺服器地址 發布:2025-05-17 11:06:27 瀏覽:34
php轉義html 發布:2025-05-17 11:04:00 瀏覽:567
鋼筋籠加密區規范 發布:2025-05-17 10:59:50 瀏覽:4
我的世界網易手機版主播伺服器房號 發布:2025-05-17 10:40:59 瀏覽:227
豎編譯 發布:2025-05-17 09:56:08 瀏覽:229
編程畫飛機 發布:2025-05-17 09:54:03 瀏覽:803
手機如何解鎖密碼屏幕鎖怎麼刪除 發布:2025-05-17 09:52:04 瀏覽:125