一、pycharm怎么导入第三方库
打开File,下面列表找到Setting开始设置。
打开Project:untitled→Project interpreter
可以看到右边有你已经导入的库,点击左边的绿色的加号就可以添加新的第三方库了。
二、怎么将pychar项目导入到githup已有的库里面
1. 目标:
把本地已经存在的项目,推送到github服务端,实现共享。
2. 实现步骤:
(1). 先从github创建一个空的仓库
(2). 初始化本地仓库,并提交内容到本地
(3). 连接到远程仓库,并将代码同步到远程仓库
(4). 继续修改本地代码,然后提交并推送到github
出处:CnPeng(专业人士)
三、如何使pip安装python本地资源
1
pip install packagename
packagename为你所要安装的库的名称!
例:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
C:\Users\Cosmo>pip install xlwt
Collecting xlwt
D:\development\python27\lib\site-packages\pip-9.0.1-py2.7.egg\pip\_vendor\requests\packages\urllib3\util\ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) exte
nsion to TLS isnotavailable on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this.
For more information, see
SNIMissingWarning
D:\development\python27\lib\site-packages\pip-9.0.1-py2.7.egg\pip\_vendor\requests\packages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext objectisnotavailable. This prevents urllib3 fro
m configuring SSL appropriately andmay cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see
ity.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading xlwt-1.2.0-py2.py3-none-any.whl (99kB)
100%|████████████████████████████████| 102kB141kB/s
Installing collected packages: xlwt
Successfully installed xlwt-1.2.0
D:\development\python27\lib\site-packages\pip-9.0.1-py2.7.egg\pip\_vendor\requests\packages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext objectisnotavailable. This prevents urllib3 fro
m configuring SSL appropriately andmay cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see
ity.html#insecureplatformwarning.
InsecurePlatformWarning
C:\Users\Cosmo>python
Python 2.7.3(default, Apr 102012, 23:31:26) [MSC v.150032bit (Intel)] on win32
Typehelp, copyright, creditsorlicenseformore information.
>>> importxlwt
>>>
|