如何在python中安装软件包 [英] How to install packages in python

查看:158
本文介绍了如何在python中安装软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我对Python完全陌生,我想安装 Python-LinkedIn $

我已经将文件安装到与我所有其他软件包相同的目录中(包括 b $ b),以便从LinkedIn API提取数据。 PIP )。我不知道这是怎么做到的。



每当我输入:

  pip安装python-linkedin 

它返回

  SyntaxError:无效语法

每当我输入:

  pip安装git + https://github.com/ozgur/python-linkedin.git 

 它返回pip clone git + https://github.com/ozgur/python-linkedin.git 



  SyntaxError:无效语法

请帮助,我只需要知道如何开始,谢谢。

解决方案

你在窗口(看起来像)



打开命令提示符并键入

  [python_folder的路径] \scripts\pip.exe install [软件包名称] 



例如,如果你的python安装在C:\中并且你使用的是2.7。

  C:\Python27\Scripts\\ \\ pip.exe安装Python-LinkedIn 

(或者 pip [versionumber])。 exe


Hi I am completely new to Python, and I would like to install Python-LinkedIn in order to extract data from the LinkedIn API.

I have installed the files into the same directory as all my other packages (including pip). I'm not sure if this is how to do it.

Whenever I type:

pip install python-linkedin

it returns

SyntaxError: invalid syntax

Whenever I type:

pip install git+https://github.com/ozgur/python-linkedin.git

or

pip clone git+https://github.com/ozgur/python-linkedin.git 

it returns

SyntaxError: invalid syntax

Help please, I just need to know how to get started, thank you.

解决方案

given that you are in windows (which it would seem like)

open command prompt and type

[path to your python_folder]\scripts\pip.exe install [package name]

for example if your python is installed in C:\ and you are using 2.7.

C:\Python27\Scripts\pip.exe install Python-LinkedIn

(or pip[versionumber].exe)

这篇关于如何在python中安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆