Coder Social home page Coder Social logo

Comments (26)

tiann avatar tiann commented on June 16, 2024

需要安装requests这个库;pip 或者easy_install即可。

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

pip install requests 成功了,出现同样的错误。。

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024
  1. python3?
  2. 重新加载一遍这个拓展

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

Python 2.7.11
我不知道如何重新加载。。我尝试退出alfred重启,还是一样的报错

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

在命令行输入python进入解释器环境,输入:
from requests.auth import AuthBase

这个会报错吗?

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

不报错

On Jan 11 2016, at 2:50 am, weishu <[email protected]> wrote:

在命令行输入python进入解释器环境,输入:
from requests.auth import AuthBase

这个会报错吗?


Reply to this email directly or [view it on GitHub](https://github.com/tiann
/markdown-img-upload/issues/2#issuecomment-170456649).![](https://github.com/n
otifications/beacon/ABKo0WiHjp6HbJOJb2wxAjjcnBJCfz5kks5pY1ZHgaJpZM4HCGmN.gif)

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024
  1. pip show requests 查看一下安装的requests在哪里
  2. 查看第一步requests目录的权限是什么,如果权限问题,可能需要重新装;

实在不行,我就把这个requests也打包到这个项目里面吧。

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

权限是 drwxr-xr-x 我感觉问题出在我自己这里。。

On Jan 11 2016, at 3:02 am, weishu <[email protected]> wrote:

  1. pip show requests 查看一下安装的requests在哪里
  2. 查看第一步requests目录的权限是什么,如果权限问题,可能需要重新装;

实在不行,我就把这个requests也打包到这个项目里面吧。


Reply to this email directly or [view it on GitHub](https://github.com/tiann
/markdown-img-upload/issues/2#issuecomment-170459022).![](https://github.com/n
otifications/beacon/ABKo0adtyNWL15wqleUoDCpKL2HNsOF1ks5pY1j6gaJpZM4HCGmN.gif)

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

不科学啊,难道你当前不是管理员用户;Mac 10.11系统吗?具体requests是安装在哪里?

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

我是管理员,是10.11,安装目录是/usr/local/lib/python2.7/site-packages

On Jan 11 2016, at 3:10 am, weishu <[email protected]> wrote:

不科学啊,难道你当前不是管理员用户;Mac 10.11系统吗?具体requests是安装在哪里?


Reply to this email directly or [view it on GitHub](https://github.com/tiann
/markdown-img-upload/issues/2#issuecomment-170460125).![](https://github.com/n
otifications/beacon/ABKo0XhyjQ4VYWmEp8XcrbDsSesEOG_Sks5pY1rXgaJpZM4HCGmN.gif)

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

10.11的权限问题;我把这个库打包,稍等。

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

@lebensterben 依赖有点多,不太好打包;你安装的时候,是直接
sudo pip install requests吗?
是不是出现一堆警告建议用
sudo -H pip install requests

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

我都没有用sudo。。。没有任何警告

On Jan 11 2016, at 3:20 am, weishu <[email protected]> wrote:

@lebensterben 依赖有点多,不太好打包;你安装的时候,是直接
sudo pip install requests吗?
是不是出现一堆警告建议用
sudo -H pip install requests


Reply to this email directly or [view it on GitHub](https://github.com/tiann
/markdown-img-upload/issues/2#issuecomment-170461516).![](https://github.com/n
otifications/beacon/ABKo0ZFRnBd3BvoHyn9uW3Ci5blbpBj7ks5pY11YgaJpZM4HCGmN.gif)

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

我卸载了,然后用sudo pip install requests,的确它建议我加-H参数

On Jan 11 2016, at 3:21 am, Hu Lucius <[email protected]> wrote:
我都没有用sudo。。。没有任何警告

On Jan 11 2016, at 3:20 am, weishu <[email protected]> wrote:

@lebensterben 依赖有点多,不太好打包;你安装的时候,是直接
sudo pip install requests吗?
是不是出现一堆警告建议用
sudo -H pip install requests


Reply to this email directly or [view it on GitHub](https://github.com/tiann
/markdown-img-upload/issues/2#issuecomment-170461516).![](https://github.com/n
otifications/beacon/ABKo0ZFRnBd3BvoHyn9uW3Ci5blbpBj7ks5pY11YgaJpZM4HCGmN.gif)

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

重新使用 sudo -H pip install requests安装试试

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

报同样地错。。

On Jan 11 2016, at 3:26 am, weishu <[email protected]> wrote:

重新使用 sudo -H pip install requests安装试试


Reply to this email directly or [view it on GitHub](https://github.com/tiann
/markdown-img-upload/issues/2#issuecomment-170462397).![](https://github.com/n
otifications/beacon/ABKo0Re-KmBGaccNa6PlB6Z-cjjh-s2tks5pY16xgaJpZM4HCGmN.gif)

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

这样,你把requests安装在alfred那个插件的本地目录吧,跟upload.py同级:

pip install --target . requests

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

我打算放弃了……

Lucius

On 2016年1月11日 -0500 03:40, [email protected], wrote:

这样,你把requests安装在alfred那个插件的本地目录吧,跟upload.py同级:

pip install --target . requests


Reply to this email directly orview it on GitHub(#2 (comment)).

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

我这也没有10.11的机器,爱莫能助阿..别放弃治疗。

from markdown-img-upload.

EkkoG avatar EkkoG commented on June 16, 2024

同样的问题。。我试试吧,这个方案上传图片真的挺方便的,不想放弃。。。

from markdown-img-upload.

EkkoG avatar EkkoG commented on June 16, 2024

可以用 pip 的 -t 参数把 requests 安装到 qiniu 目录中
如果遇到 distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both 错误,可以按照这个方法解决
https://stackoverflow.com/questions/24257803/distutilsoptionerror-must-supply-either-home-or-prefix-exec-prefix-not-both
已成功

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

@cielpy 棒棒嗒~
@lebensterben 问题已经解决,试试看?

from markdown-img-upload.

lebensterben avatar lebensterben commented on June 16, 2024

找不到qiniu目录..请问在哪

from markdown-img-upload.

EkkoG avatar EkkoG commented on June 16, 2024

在 Workflows 里找到相应的 workflow 然后右键 show in Finder 就看到了

-- 
Kevin Guo
Sent with Airmail

在 2016年4月16日 下午2:32:02, Lucius Hu ([email protected]) 写到:

找不到qiniu目录..请问在哪


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

from markdown-img-upload.

EkkoG avatar EkkoG commented on June 16, 2024

按照 https://stackoverflow.com/questions/24257803/distutilsoptionerror-must-supply-either-home-or-prefix-exec-prefix-not-both 的解决方法会有后遗症,该解决方案将 pip 的路径前缀设置为空, 用 brew 安装的 pip 的默认路径前缀是 /usr/local,正常安装的话会将 module 安装到 /usr/local/lib/xxx 下,如果设置为空,再用 pip 安装全局的 module 的话会安装到 /lib/xxx 下,需要 root 权限

from markdown-img-upload.

tiann avatar tiann commented on June 16, 2024

@cielpy 👍

from markdown-img-upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.