这是我得到的错误
(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-python
Downloading/unpacking mysql-python
Downloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloaded
Running setup.py egg_info for package mysql-python
sh: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: mysql_config: not found
Traceback …
Run Code Online (Sandbox Code Playgroud) 这是我的错误:
(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install lxml
Downloading/unpacking lxml
Running setup.py egg_info for package lxml
Building lxml version 2.3.
Building without Cython.
ERROR: /bin/sh: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
Installing collected packages: lxml
Running setup.py install for lxml
Building lxml version 2.3.
Building without Cython.
ERROR: /bin/sh: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration …
Run Code Online (Sandbox Code Playgroud) 我有一个URL,如:
www.example.com/task1/1.3.html#a_1
Run Code Online (Sandbox Code Playgroud)
如何a_1
使用jQuery 获取锚值并将其存储为变量?
这是我的代码:
print str(float(1/3))+'%'
Run Code Online (Sandbox Code Playgroud)
它显示:
0.0%
Run Code Online (Sandbox Code Playgroud)
但我想得到 33%
我能做什么.
我有两个问题:
这是我的代码,但没有成功:
Reporter.objects.delete()
Run Code Online (Sandbox Code Playgroud) 当我在我的ubuntu中设置mongodb时,我尝试:./ mongo它显示此错误:
couldn't connect to server 127.0.0.1 shell/mongo.js
Run Code Online (Sandbox Code Playgroud)
那我该怎么办
谢谢
我可以使用此代码删除点击事件,
$('p').unbind('click')
Run Code Online (Sandbox Code Playgroud)
但是,有一些方法可以删除所有事件吗?
有一个unbindAll
在jquery中命名的方法?
谢谢
这是我的代码:
var a=[1,2,3]
b=$.clone(a)
alert(b)
Run Code Online (Sandbox Code Playgroud)
jQuery没有'克隆'方法吗?如何使用jQuery克隆数组?
这是我的代码:
{% for i,j in enumerate(a) %}
{{i}} ,{{j}}
{% endfor%}
Run Code Online (Sandbox Code Playgroud)
但是,它显示错误,我认为它无法运行该enumerate
方法,
那么如何运行enumerate
django模板,
谢谢