我在安装matplotlib软件包后无法将matplotlib.pyplot作为plt导入.任何建议都将非常感激.
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/pyplot.py", line 98, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/__init__.py", line 28, in pylab_setup
globals(),locals(),[backend_name],0)
File "//anaconda/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.5-x86_64.egg/matplotlib/backends/backend_macosx.py", line 21, in <module>
from matplotlib.backends import _macosx
**RuntimeError**: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the …
Run Code Online (Sandbox Code Playgroud) 我有以下安装pygame包的问题.
In file included from src/_numericsurfarray.c:23:
src/pygame.h:106:10: fatal error: 'SDL.h' file not found
#include <SDL.h>
^
1 error generated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
系统信息
任何建议都会非常感激?谢谢.
问题:要在MAC OS中获取文件的sha1sum值,请运行以下命令
sha1sum file_name
Run Code Online (Sandbox Code Playgroud)
我得到的错误是跟随
perl version 5.18.2 can't run /usr/bin/sha1sum. Try the alternative(s):
/usr/bin/sha1sum5.16 (uses perl 5.16)
Run "man perl" for more information about multiple version support in
Mac OS X.
Run Code Online (Sandbox Code Playgroud)
我试图安装textutils和coreutils,但都失败了.任何人都可以建议我如何解决这个问题?提前致谢.
在.gitconfig
文件中我按如下方式设置了git diff:
[diff]
tool = kdiff3
[difftool "kdiff3"]
path = path_directory/kdiff3.app
Run Code Online (Sandbox Code Playgroud)
在此设置中,无法访问kdiff,当我在终端中运行时出现以下错误
>> git difftool
The diff tool kdiff3 is not available as 'Kdiff_local_software_path/kdiff3.app'
fatal: external diff died, stopping at modified_file
Run Code Online (Sandbox Code Playgroud)
你有什么建议可以解决这个问题吗?在我目前的设置Mac OS 10.10.5 git diff工具是git merge tool
我想用kdiff替换.
默认情况下,我们在markdown文件中显示参考,如下所示:
* [Example Grammer][example_grammer]- this is a reference
Run Code Online (Sandbox Code Playgroud)
页面底部和底部添加了在markdown文件视图中不可见的参考列表。
[example_grammer]: http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.xtext.doc%2Fcontents%2F020-grammar-language.html
Run Code Online (Sandbox Code Playgroud)
是否可以在视图文件中显示参考。谢谢。
我正在尝试使用SVM分类器学习文本分类,为此我正在尝试sci-kit学习的示例代码,但是当我导入以下命令时
from scikits.learn import svm
Run Code Online (Sandbox Code Playgroud)
我收到错误,如下图所示.
仅供参考,我在Mac OS-X 10.8.5中安装了scikit-learn .我也可以运行以下命令而不会出现任何错误
import sklearn.svm
import sklearn.cluster
import sklearn
Run Code Online (Sandbox Code Playgroud)
任何建议都将非常感激.谢谢.
这是我正在使用的以下代码
set statusline=\PATH:\ %r%F\ \ \ \ \LINE:\ %l/%L/%P
Run Code Online (Sandbox Code Playgroud)
在同一个状态行中,我如何显示时间信息?谢谢你的建议。
python ×3
macos ×2
anaconda ×1
git ×1
git-diff ×1
git-difftool ×1
kdiff3 ×1
markdown ×1
matplotlib ×1
osx-leopard ×1
phpmyadmin ×1
pygame ×1
reference ×1
scikit-learn ×1
sha1 ×1
sql ×1
statusline ×1
time ×1
vim ×1
xampp ×1