V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  neoz  ›  全部回复第 19 页 / 共 20 页
回复总数  382
1 ... 11  12  13  14  15  16  17  18  19  20  
2014-06-22 23:05:40 +08:00
回复了 neoz 创建的主题 Python 求助,pip 报错。。
@glasslion 好吧。。今天第一次接触ub,求指教。。。
2014-06-22 23:02:29 +08:00
回复了 neoz 创建的主题 Python 求助,pip 报错。。
@glasslion pip install --use-wheel Pillow 了,但是还是同样。。。
2014-06-22 22:51:03 +08:00
回复了 neoz 创建的主题 Python 求助,pip 报错。。
@cbsw Downloading/unpacking BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
Getting page https://pypi.python.org/simple/BeautifulSoup/
URLs to search for versions for BeautifulSoup==3.2.1 (from -r requirements.txt (line 1)):
* https://pypi.python.org/simple/BeautifulSoup/3.2.1
* https://pypi.python.org/simple/BeautifulSoup/
Getting page https://pypi.python.org/simple/BeautifulSoup/3.2.1
Could not fetch URL https://pypi.python.org/simple/BeautifulSoup/3.2.1: 404 Client Error: Not Found
Will skip URL https://pypi.python.org/simple/BeautifulSoup/3.2.1 when looking for download links for BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
Analyzing links from page https://pypi.python.org/simple/BeautifulSoup/
Found link https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.0.tar.gz#md5=9c0f5d246ecfcf5f0905a47b1466e140 (from https://pypi.python.org/simple/BeautifulSoup/), version: 3.2.0
Found link https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.1.tar.gz#md5=44656527ef3ac9874ac4d1c9f35f70ee (from https://pypi.python.org/simple/BeautifulSoup/), version: 3.2.1
Ignoring link https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.0.tar.gz#md5=9c0f5d246ecfcf5f0905a47b1466e140 (from https://pypi.python.org/simple/BeautifulSoup/), version 3.2.0 doesn't match ==3.2.1
Downloading BeautifulSoup-3.2.1.tar.gz
Downloading from URL https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.1.tar.gz#md5=44656527ef3ac9874ac4d1c9f35f70ee (from https://pypi.python.org/simple/BeautifulSoup/)
Running setup.py (path:/tmp/pip_build_root/BeautifulSoup/setup.py) egg_info for package BeautifulSoup
running egg_info
creating pip-egg-info/BeautifulSoup.egg-info
writing pip-egg-info/BeautifulSoup.egg-info/PKG-INFO
writing top-level names to pip-egg-info/BeautifulSoup.egg-info/top_level.txt
writing dependency_links to pip-egg-info/BeautifulSoup.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/BeautifulSoup.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found

reading manifest file 'pip-egg-info/BeautifulSoup.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/BeautifulSoup.egg-info/SOURCES.txt'
Source in /tmp/pip_build_root/BeautifulSoup has version 3.2.1, which satisfies requirement BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
Downloading/unpacking PIL==1.1.7 (from -r requirements.txt (line 2))
Getting page https://pypi.python.org/simple/PIL/
URLs to search for versions for PIL==1.1.7 (from -r requirements.txt (line 2)):
* https://pypi.python.org/simple/PIL/1.1.7
* https://pypi.python.org/simple/PIL/
Getting page https://pypi.python.org/simple/PIL/1.1.7
Could not fetch URL https://pypi.python.org/simple/PIL/1.1.7: 404 Client Error: Not Found
Will skip URL https://pypi.python.org/simple/PIL/1.1.7 when looking for download links for PIL==1.1.7 (from -r requirements.txt (line 2))
Analyzing links from page https://pypi.python.org/simple/PIL/
Skipping link http://effbot.org/downloads/#Imaging (from https://pypi.python.org/simple/PIL/); not a file
Skipping link http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/); unknown archive format: .htm
Skipping link http://www.pythonware.com/downloads/Imaging-1.1.3.tar.gz (from https://pypi.python.org/simple/PIL/); wrong project name (not pil)
Skipping link http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/); not a file
Skipping link http://www.pythonware.com/products/pil/ (from https://pypi.python.org/simple/PIL/); not a file
Not searching http://effbot.org/downloads/#Imaging (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://www.pythonware.com/downloads/Imaging-1.1.3.tar.gz (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://www.pythonware.com/products/pil/ (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Not searching http://www.pythonware.com/products/pil/ (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
Could not find any downloads that satisfy the requirement PIL==1.1.7 (from -r requirements.txt (line 2))
Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
Removing temporary dir /tmp/pip_build_root...
No distributions at all found for PIL==1.1.7 (from -r requirements.txt (line 2))
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1177, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/local/lib/python2.7/dist-packages/pip/index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for PIL==1.1.7 (from -r requirements.txt (line 2))
2014-06-22 22:32:44 +08:00
回复了 neoz 创建的主题 Python 求助,pip 报错。。
python 2.7.6

pip{
BeautifulSoup==3.2.1
MySQL-python==1.2.4
PIL==1.1.7
argparse==1.2.1
ipython==1.1.0
meld3==0.6.10
pony==0.4.9
python-memcached==1.53
redis==2.8.0
supervisor==3.0
tornado==3.1.1
wsgiref==0.1.2
}
2014-06-22 01:51:48 +08:00
回复了 sorry 创建的主题 程序员 请教个算法问题,给点建议
<code>
#include<iostream>
#include<random>
#include<time.h>
using namespace std;
int rpc(int x[13],int xx,int ra)
{
if(xx>5)
{
if((ra-x[xx-1]==1)&&(x[xx-1]-x[xx-2]==1)&&(x[xx-2]-x[xx-3]==1)&&(x[xx-3]-x[xx-4]==1)&&(x[xx-4]-x[xx-5]==1))
return 1;
else
return 0;
}
return 0;
}
int main()
{
clock_t start_time=clock();
int count=0;
for(int j=0;j<10000;j++)
{
//random_device rd;
srand( (unsigned)time( NULL ) );
bool repeat[31]={0};
int x[13]={0};
int r=rand()%30+1;
x[0]=r;
repeat[r]=1;
for(int i=1;i<13;i++)
{
int ran=rand()%30+1;
while(repeat[ran]==0)
{
ran=rand()%30+1;
count++;
}
if(abs(ran-x[i-1])>5 || rpc(x,i,ran))
{
i--;
}
else
{
x[i]=ran;
repeat[ran]=1;
}
}
//cout<<j<<"--";
//for(int i=0;i<13;i++)
//cout<<x[i]<<" ";
//cout<<endl;
}
clock_t end_time=clock();
cout<< "Running time is: "<<static_cast<double>(end_time-start_time)/CLOCKS_PER_SEC*1000<<"ms"<<endl;//输出运行时间
cout<<"The count of ceash is: "<<count<<endl;
return 0;
}
</code>
测了下是15-25ms之间。用未排序下去做。。。c++初学者。。。不会位运算,第一次想别人的问题,第一次贴出代码。还需努力,见笑了。。。
2014-06-21 19:38:00 +08:00
回复了 neoz 创建的主题 Tornado tornado 如何实现页面的 request_time?
@reorx 我github和duck一直都很顺畅。谢谢指点
2014-06-21 17:34:50 +08:00
回复了 neoz 创建的主题 Tornado tornado 如何实现页面的 request_time?
@Livid 我今天是粗略看了下百度,然后看了下duckduckgo,也都每看到。。。坑的没想到去自由国度那边看看,谢livid!我去逛tornado的文档。
2014-06-21 13:31:27 +08:00
回复了 geew 创建的主题 Tornado 有关Tornado 异步的讨论
@fansgentle 请问tornado的request_time应该怎么实现?
2014-06-21 10:52:52 +08:00
回复了 Livid 创建的主题 I Am A I am the initiator of V2EX, ask me anything :)
@Livid 请问footer的VERSION: 3.3.2 · xx ms统计的是什么?
在python中怎么实现?
[初学者。。。]
2014-06-18 14:13:22 +08:00
回复了 coke 创建的主题 程序员 移动送了个 8m 宽带,但是发现上下行不对称
在中国,好像不算什么稀奇
2014-06-17 16:11:55 +08:00
回复了 neoz 创建的主题 Python 有哪些类 V2EX 的开源社区项目。
@Ansonyi 有搜过。。。此贴目的在于搜集没有太公开的一些开源。。
2014-06-17 16:07:55 +08:00
回复了 neoz 创建的主题 Python 有哪些类 V2EX 的开源社区项目。
@superwbd 底部化繁为简,会比较合适。不然就缩小字号扩大行距
2014-06-17 15:19:50 +08:00
回复了 neoz 创建的主题 Python 有哪些类 V2EX 的开源社区项目。
@ericls 这域名碎了吗
2014-06-17 15:17:42 +08:00
回复了 neoz 创建的主题 Python 有哪些类 V2EX 的开源社区项目。
@turing 这个以前有看过,做的很不错
2014-06-17 14:43:12 +08:00
回复了 neoz 创建的主题 Python 有哪些类 V2EX 的开源社区项目。
@superwbd 不错,就是字体颜色坑了
2014-06-17 13:18:43 +08:00
回复了 neoz 创建的主题 Python 有哪些类 V2EX 的开源社区项目。
@missdeer 确实,在质量上面v2ex做得很足。一些提高用户质量的算法也很不错。
逛到http://wehoton.com这个站,看起来还是相对满意得(只从界面功能)。
2014-06-17 12:52:21 +08:00
回复了 neoz 创建的主题 Python 有哪些类 V2EX 的开源社区项目。
@WildCat nodeclub好像更像是单节点的社区。
@Ellison 以上的那些功能好像都相近
2014-06-15 22:23:24 +08:00
回复了 WindSays 创建的主题 分享创造 低调发布一个 WordPress 主题
@WindSays 哈哈,希望theme越出越好~
2014-06-15 21:19:01 +08:00
回复了 WindSays 创建的主题 分享创造 低调发布一个 WordPress 主题
@WindSays pesi.me 话说我把底部版权信息稍微动了下,应该不会算侵犯权限把。。。
2014-06-15 17:13:20 +08:00
回复了 geek1024 创建的主题 分享创造 铁磁流体 -- Geek 的科学玩具 & geek1024.com beta 开业
有点赞!给力啊。
不过感觉玩没多久就玩不下去了
1 ... 11  12  13  14  15  16  17  18  19  20  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2631 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 15:36 · PVG 23:36 · LAX 08:36 · JFK 11:36
Developed with CodeLauncher
♥ Do have faith in what you're doing.