问题标签 [swampy]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
6 回答
9005 浏览

python - 在 Windows 上安装 Swampy Python 模块

我正在尝试在 Python 上安装Swampy 模块,但是在网站和文档中给出的说明中有很多不清楚的地方。我已将 Swampy 文件夹放入 Python 2.7.1 的 site-packages 文件夹中,但我不知道如何制作将安装它的 .pth 文件以便可以导入模块。谁能告诉我如何制作这些神奇的 .pth 文件之一?

0 投票
1 回答
719 浏览

python - 我如何easy_install Swampy?

按照 python.org 上的教程,我尝试通过以下方式安装 Swampy:

但这些都不起作用!我做错了什么?

0 投票
1 回答
435 浏览

python - 帮助安装 Swampy python 模块?

我需要为Think Python书安装swampy。我尝试了文档,但我无法弄清楚。我已经尝试了几天,直到我安装它才能继续这本书。

我使用 Ubuntu。

0 投票
1 回答
1383 浏览

python - Installing Swampy on a Mac (OSX) using preinstalled Python version 2.6

I have the same exact problem outlined in this question: Mac Swampy (Python learning module) install

But I still can't seem to finds simple enough instructions to install and run Swampy on my mac. I have absolutely no background in computer science/programming and am teaching myself Python from Allen Downey's book "ThinkPython".

I would really appreciate it if someone could give me step by step, simple instructions to install the Swampy module on my Mac. Plea from a complete tech noob here.

Thanks in advance.

AJ

0 投票
3 回答
3704 浏览

python - 安装模块时没有模块错误

在过去的几天里,我一直在使用 Think Python 来学习编程。今天我到了第 4 章,它开始谈论需要 Swampy,这是一个用于在本章中教授界面设计的包(正确的术语?)。

所以,谈到我的问题,我被告知输入的第一段代码是

当我运行它时,我收到以下错误

我已经使用 pip 和 distutils 安装和卸载了 swampy,swampy 在站点包中,当我询问解释器安装了哪些模块时,swampy 出现了。我只是不明白为什么我会收到错误消息。

另外,我的 PYTHONPATH 末尾有“/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/swampy”。虽然它确实有两次,但我不知道这是否重要。

任何帮助将不胜感激。

谢谢

0 投票
4 回答
4195 浏览

python - 为 Python 3 安装 Swampy

我目前正在我的计算机上运行 Python 3.2,并且需要为我正在阅读的一本书安装 Swampy。阅读教程的许多页面和页面让我更加困惑。我已经下载了“swampy1.4”。我正在尝试按照此页面上的一组说明执行此操作 - http://www.instructables.com/id/How-to-install-Python-packages-on-Windows-7/

尝试将目录更改为 simplejson2.6.1(我在页面上有此软件的更新版本)我收到此错误 - “系统找不到指定的路径。”

谁能告诉我哪里出错了?将不胜感激。

0 投票
1 回答
1455 浏览

python - 逐步安装 Swampy

我是编程新手,正在阅读“Think Python”一书。在第 4 章中,我需要安装“swampy”——python 包。过去几天我一直在尝试,但没有成功。我正在运行 Python 2.7 和 3.2。我的电脑运行 Windows 7 并且是 64 位的。

请问有人可以为我提供简单的分步说明来解决这个问题吗?

谢谢

0 投票
1 回答
939 浏览

python - 导入 Swampy(Python 学习模块)

我正在研究“ThinkPython”,在第 4 章中,我们被要求下载 swampy(一个学习模块)。好吧,我按照此处的说明进行了安装,但是当我尝试使用 IDLE(Python GUI) 导入时import swampy.TurtleWorld,我得到以下信息:

我怎样才能解决这个问题?

0 投票
1 回答
2114 浏览

python - Python 2.7.3 :AttributeError: 'NoneType' 对象没有属性 'canvas'

我只是python的初学者,已经开始使用python 2.7.3版本。我一直在跟进Think Python电子书。我被困在第4章案例研究:界面设计中有一个程序可以画线。我得到当我运行给定的代码时出现以下错误。

> 执行:

> 脚本

0 投票
1 回答
946 浏览

python - 无法连接 Eclipse、tkinter、Swampy 和 TurtleWorld

我正在尝试在 Eclipse 中执行 Think Python 的海龟相关程序,但我似乎总是有一个错误困扰着我。

似乎我已经在我的计算机中正确安装了 Eclipse、Python 2.6 和 Python 3.3,并通过 Window>>Preferences>>Interpreter - Python >> New Folder in Libraries 将它们链接到 Eclipse。我也用 Swampy215 和 216 做到了这一点。

我运行没有问题:

但是,当我运行时: import swampy.TurtleWorld OR from swampy import TurtleWorld 我收到以下错误消息:

奇怪的是,当我输入 import swampy 时。Eclipse 建议使用“TurtleWorld”,但在此过程中似乎要求使用 Tkinter (Python 2.7)。