python簡說(十六)第三方模組安裝
安裝第三模組
1、pip install xxx
pip問題
1、提示沒有pip命令的,
把python的安裝目錄、
安裝目錄下面的scripts目錄加入到環境變數裡面
2、Unknown or unsupported command 'install'
1、先執行 where pip
2、找到不是python目錄下叫pip的檔案,改成其他的名字就ok了
3、電腦裡面裝了多個python
python2 python3
1、先去python2安裝目錄裡面把python.exe的名字改成python2.exe
2、再把python3安裝目錄裡面的python.exe名字改成python3.exe
python2 -m pip install xxx
python3 -m pip install xxx
2、手動安裝
1、.whl
pip install /Users/nhy/Downloads/PyMySQL-0.9.2-py2.py3-none-any.whl
2、.tar.gz
先解壓
然後在命令列裡面進入到這個目錄下
python setup.py install
相關推薦
python簡說(十六)第三方模組安裝
安裝第三模組 1、pip install xxx pip問題 1、提示沒有pip命令的, 把python的安裝目錄、 安裝目錄下面的scripts目錄加入到環境變數裡面 2、Unknown or unsupported command 'install' 1、先執行 where pip 2、找到不是pyt
python學習(十六)——多型、封裝、反射、、動態匯入模組、類內建attr方法
一、多型 # 不同的例項呼叫同樣的方法,產生不同的結果 # 多型來自繼承 class H2O: def __init__(self,name,temperature): self.name=name self.temperature=
Python學習(十六)內置函數,遞歸
font ID lam 效率 ascii碼 span 自帶 打印 十六 1、遞歸 def test1(): num=int(input(‘輸入數字‘)) if num%2==0: #判斷輸入數字是不是偶數 return True #是偶數
Appium+python自動化(十六)- ADB命令,知否知否,應是必知必會(超詳解)
簡介 Android 除錯橋(adb)是多種用途的工具,該工具可以幫助你你管理裝置或模擬器 的狀態。 adb ( Android Debug Bridge)是一個通用命令列工具,其允許您與模擬器例項或連線的 Android 裝置進行通訊。它可為各種裝置操作提供便利,如安裝和除錯應用。
(十六)Centos之安裝mysql
sqlyog str conn blog roo 臨時 mysql5.7 測試 mysql- 第一步:獲取mysql YUM源 進入mysql官網獲取RPM包下載地址 https://dev.mysql.com/downloads/repo/yum/ 點擊 下載
Docker實戰(十六):Docker安裝HBase環境
Docker安裝HBase環境 HBase安裝 # 下載HBase $ wget http://apache.fayea.com/hbase/0.98.19/hbase-0.98.19-hadoop2-bin.tar.gz # 解壓Hive壓縮包
大資料學習筆記(十六)-Hue的安裝部署和使用
sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libtidy libxml2-devel libxslt-devel mak
Python學習筆記(十六)模組
模組是Python程式架構的一個核心概念 模組就好比是工具包,要想使用這個工具包中的工具,就需要匯入import這個模組 每一個以副檔名py結尾的Python原始碼檔案都是一個模組 在模組中定義的全域性變數、函式都是模組能夠提供給外界直接使用的工具 &nb
python簡說(十八)匯入模組
1、import xx import 一個模組的實質就是把這個python檔案從頭到尾執行一遍 2、import模組的查詢模組的順序 1)、從當前目錄下找 2)、sys.path python的安裝目錄 從上面2個目錄都找不到,那就報錯 1.同目錄下,直接匯入,import XXX 2.不
Python學習筆記(十六)拓展庫Scipy
mage http 十六 .cn 學習筆記 eight -1 images 分享 Python學習筆記(十六)拓展庫Scipy
第三方庫的使用支持(十六)
size o-c str RF 先來 style 二次 總結 %d 我們在使用 makefile 時,難免會避免使用到第三方庫文件。那麽當需要使用第三方庫文件時,編譯環境中的 makefile 該如何修改呢?在平時的一些經驗中,第三方庫是通過函數調用的方式提
Python+OpenCV圖像處理(十六)—— 輪廓發現
draw 一個 設置 在外 ace align list tco 灰度 簡介:輪廓發現是基於圖像邊緣提取的基礎尋找對象輪廓的方法,所以邊緣提取的閾值選定會影響最終輪廓發現結果。 代碼如下: import cv2 as cv import numpy as np def c
機器學習之python(十六)
這次為什麼還有教一下python呢? 這裡的教學是針對於機器學習中使用到的python的一些功能。 我希望大家在看完之前的教程之後再看這些文章。 教學還是在程式碼塊中進行註解,希望大家慢慢看 慢慢的去理會。 今天來學習python中的list、你們也可以參考廖雪峰大神的pyth
Python小白學習之路(十六)—【內置函數一】
tro item 求和 整數 Coding rop 數學運算 memory 保留 將68個內置函數按照其功能分為了10類,分別是: 數學運算(7個) abs() divmod() max() min() pow() round()
Python小白學習之路(十六)—【內建函式一】
將68個內建函式按照其功能分為了10類,分別是: 數學運算(7個) abs() divmod() max() min() pow() round() sum() 型別
python學習之網站的編寫(HTML,CSS,JS)(十六)----------示例,構造一個左側管理選單的功能,點選主選單才顯示下面的內容
結果: 程式碼: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>逆水行舟不進則退</title>
python基礎教程(第三版)學習筆記(十六)
第十六章 測試基礎 除錯是程式設計師躲不開的宿命,是程式設計工作的有機組成部分。 本章介紹測試的基本知識。培養如何養成在程式設計中進行測試的習慣,並介紹一些可幫 助編寫測試的工具。 16.1 先測試再編碼 要避免程式碼在開發途中被淘汰,必須能夠應對變化並具備一定的靈活性,因此為程式的各個
Python資料處理之(十 六)Pandas 合併merce
要點 pandas中的merge和concat類似,但主要是用於兩組有key column的資料,統一索引的資料. 通常也被用在Database的處理當中. 依據一組key合併 import pandas as pd #定義資料集並打印出 left = pd.DataFrame({
Python學習筆記(十六)模塊
編寫 pytho pychar 擴展名 能夠 一個 每一個 註意 源代碼 模塊是Python程序架構的一個核心概念 模塊就好比是工具包,要想使用這個工具包中的工具,就需要導入import這個模塊 每一個以擴展名py結尾的Python源代碼文件都是一個模塊 在模塊中定義
SpringBoot入門系列篇(十六):actuator監控模組入門
actuator是SpringBoot提供的一個用於監控的模組,想要在SpringBoot中使用則需要引入該jar包: <dependency> <groupId>org.springframework.boot</gro