Comments (26)
需要安装requests这个库;pip 或者easy_install即可。
from markdown-img-upload.
pip install requests 成功了,出现同样的错误。。
from markdown-img-upload.
- python3?
- 重新加载一遍这个拓展
from markdown-img-upload.
Python 2.7.11
我不知道如何重新加载。。我尝试退出alfred重启,还是一样的报错
from markdown-img-upload.
在命令行输入python进入解释器环境,输入:
from requests.auth import AuthBase
这个会报错吗?
from markdown-img-upload.
不报错
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.
- pip show requests 查看一下安装的requests在哪里
- 查看第一步requests目录的权限是什么,如果权限问题,可能需要重新装;
实在不行,我就把这个requests也打包到这个项目里面吧。
from markdown-img-upload.
权限是 drwxr-xr-x 我感觉问题出在我自己这里。。
On Jan 11 2016, at 3:02 am, weishu <[email protected]> wrote:
- pip show requests 查看一下安装的requests在哪里
- 查看第一步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.
不科学啊,难道你当前不是管理员用户;Mac 10.11系统吗?具体requests是安装在哪里?
from markdown-img-upload.
我是管理员,是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.
10.11的权限问题;我把这个库打包,稍等。
from markdown-img-upload.
@lebensterben 依赖有点多,不太好打包;你安装的时候,是直接
sudo pip install requests
吗?
是不是出现一堆警告建议用
sudo -H pip install requests
from markdown-img-upload.
我都没有用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.
我卸载了,然后用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.
重新使用 sudo -H pip install requests
安装试试
from markdown-img-upload.
报同样地错。。
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.
这样,你把requests安装在alfred那个插件的本地目录吧,跟upload.py同级:
pip install --target . requests
from markdown-img-upload.
我打算放弃了……
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.
我这也没有10.11的机器,爱莫能助阿..别放弃治疗。
from markdown-img-upload.
同样的问题。。我试试吧,这个方案上传图片真的挺方便的,不想放弃。。。
from markdown-img-upload.
可以用 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.
@cielpy 棒棒嗒~
@lebensterben 问题已经解决,试试看?
from markdown-img-upload.
找不到qiniu目录..请问在哪
from markdown-img-upload.
在 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.
按照 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.
@cielpy 👍
from markdown-img-upload.
Related Issues (20)
- 我按照文档配置了环境,可是按快捷键时,出现ImportError: No module named requests.auth HOT 5
- 您好,我做了一个 Alfred Workflow 把图片上传到微博,用到了您这个项目的一些代码,请问我可以把我的 Workflow 打包发布吗? HOT 2
- No module named AppKit HOT 1
- Linux下有解决方案吗。。 HOT 1
- 这个支持windows 10吗? HOT 1
- 你好,我在mac OS X 10.11.16版本中报错,下面是debug信息 HOT 3
- jpg图片被更改为png HOT 1
- 按下快捷键后,粘贴出两个url链接啦 HOT 8
- Alfred调试报错 HOT 4
- 我想问下 不能看到 md 中的预览图吗? HOT 12
- 求requirements HOT 1
- 问个小小的问题,关于图片url HOT 1
- README图片都看不到了~ HOT 1
- url upload support
- 剪切板里没有图片 HOT 22
- 为什么不好使呢。。。 HOT 1
- 无效,没有任何错误提示 HOT 23
- 生成的链接不带协议 HOT 1
- gif upload support
- alfred 报 global name 'png_file' is not defined 错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-img-upload.