python-2.7
Is there a way to tell where your python file is?
(Python2.7-3.2 on WindowsXP) I used to use sys.arg[0], but now I\'m开发者_JAVA技巧 executing it from a batch script(for determining if the user has python)[详细]
2023-02-21 08:46 分类:问答Running Scapy on Windows with Python 2.7
I like to use Scapy with Python v2.7 under Windows 7. 开发者_运维技巧How can I install the required module pypcap for Python 2.7?[详细]
2023-02-20 05:25 分类:问答Python 2.7 on Ubuntu
I am new to Python and am working on a Linux machine (Ubuntu 10.10). It is running python 2.6, but I\'d like to run 2.7 as it has features I want to use. I have been urged to not install 2.7 and set t[详细]
2023-02-15 07:56 分类:问答ImportError: No module named _ssl
Ubuntu Maverick w/Python 2.7: I can\'t figure out what to do to resolve the following import error: >>> import ssl[详细]
2023-02-13 10:07 分类:问答Regular expression to remove line breaks
I am a complete newbie to Python, and I\'m stuck with a regex problem. I\'m trying to remove the line break character at the end of each line in a text file, but only if it follows a lowercase letter,[详细]
2023-02-12 18:59 分类:问答Twisted Conch for Python 2.71 on Windows Server 2008 R2 x64?
I\'m planning on using Twisted Conch for the SFTP protion of an application I\'m working on. The rest of the application is built on Python 2.71, and while it appears that Twisted as a whole is availa[详细]
2023-02-12 12:00 分类:问答How to install modules for Python 2.7 on Ubuntu 10.10?
On Ubuntu 10.10, I am unable to install lxml to python 2.7. Here are the steps I take. sudo su - apt-get install python2.7[详细]
2023-02-12 11:36 分类:问答When is it better to use zip instead of izip?
When is it b开发者_JS百科etter to use zip instead of itertools.izip?zip computes all the list at once, izip computes the elements only when requested.[详细]
2023-02-10 13:20 分类:问答Python 2.7 fabric/paramiko EOF when trying to untar a remote file
I am trying to remotely untar a file using fabric 0.92, but am receiving an EOF from paramiko. def deployFile(self, localdir, remoteroot, filename):[详细]
2023-02-09 07:38 分类:问答How to install mechanize for Python 2.7?
I saved mechanize in my Python 2.7 directory. But when I type import mechanize into the Python shell, I get an error message that reads:[详细]
2023-02-08 03:38 分类:问答