首页 \ 问答 \ 在Windows上设置Python simpleHTTPserver [duplicate](Set up Python simpleHTTPserver on Windows [duplicate])

在Windows上设置Python simpleHTTPserver [duplicate](Set up Python simpleHTTPserver on Windows [duplicate])

这个问题已经在这里有一个答案:

  • 什么是Python 3相当于“python -m SimpleHTTPServer” 7的答案

我想在Windows XP上设置Python SimpleHTTPServer 。 我的电脑上安装了Python。 我正在执行以下命令:

python -m SimpleHTTPServer 8888

但我收到错误:

C:\Python33\python.exe: No module named SimpleHTTPServer

Windows的SimpleHTTPServer for Python是否可用? 如果是,我该如何设置服务器?


This question already has an answer here:

I want to set up Python SimpleHTTPServer on Windows XP. I have Python installed on my computer. I am executing the following command:

python -m SimpleHTTPServer 8888

But I am getting the error:

C:\Python33\python.exe: No module named SimpleHTTPServer

Is SimpleHTTPServer for Python available on Windows? If yes, what do I do to set up the server?


原文:https://stackoverflow.com/questions/17351016
更新时间:2022-02-09 15:02

最满意答案

转到产品=> Scheme =>编辑方案或使用快捷方式: CMD + <

OS_ACTIVITY_MODE添加为disable

在此输入图像说明

我使用这个答案: hide-xcode-8-log from @iDevzilla来解决这个问题:

尝试这样:在您的环境变量设置OS_ACTIVITY_MODE =禁用 在此输入图像说明


Go to Product => Scheme => Edit Scheme or use shortcut: CMD + <

Add OS_ACTIVITY_MODE as disable

enter image description here

And i use this answer: hide-xcode-8-logs from @iDevzilla to solve this:

Try this: On your Environment Variables set OS_ACTIVITY_MODE = disable enter image description here

相关问答

更多
  • 在Xcode中,转到您的目标 ,然后右键单击并选择: Add -> New Build Phase -> New Run Script Build Phase 然后添加以下内容: open /Applications/Utilities/Terminal.app 现在,每次构建应用程序时,Xcode都会运行此构建脚本并启动终端。 请注意,您需要指向终端应用程序的正确位置。 最好的方法是找到Terminal.app并在键入“open”后将其拖放到上述屏幕上。 打开终端后,您需要制作一个AppleScript ...
  • 转到产品=> Scheme =>编辑方案或使用快捷方式: CMD + < 将OS_ACTIVITY_MODE添加为disable 我使用这个答案: hide-xcode-8-log from @iDevzilla来解决这个问题: 尝试这样:在您的环境变量设置OS_ACTIVITY_MODE =禁用 Go to Product => Scheme => Edit Scheme or use shortcut: CMD + < Add OS_ACTIVITY_MODE as disable And i use ...
  • Xcode不打算运行该程序,以便它在像Terminal.app这样的外部程序中显示其输出。 它可能可以通过搞乱方案配置来完成,但这可能不是一个好主意。 如果你想让一个程序的输出出现在Terminal.app中,那么你应该在Terminal中运行该程序。 要执行此操作,请转至项目的构建目录,找到可执行文件,然后将路径复制到终端中。 运行该程序。 鉴于你的评论,你不清楚你在问什么。 这听起来像也许你问是否传递给system()的命令也可以在运行Terminal.app时直接使用。 这个问题的答案是'是'。 你给 ...
  • 你需要做的是这样的: svn --username user --password password co svn://google.com/ad what you need to do is this: svn --username user --password password co svn://google.com/ad
  • defaults read com.apple.Xcode { NSQuitAlwaysKeepsWindows = 0; } 这意味着您要查找的值不在该包的.plist文件中。 默认文件只能读取〜/ Library / Preferences /文件夹中的那些值。 defaults read com.apple.Xcode { NSQuitAlwaysKeepsWindows = 0; } It means the value you are looking for is not in ...
  • 链接的答案是Xcode 3,我想。 对于Xcode 4,打开Preferences ....中的Behaviors选项卡,然后在“Build Starts”(确保已选中)下,使用“Console View”部分启用“Show”调试器。 Link's answer is for Xcode 3, I think. For Xcode 4, open the Behaviors tab in Preferences.... and under "Build Starts" (make sure that's c ...
  • 我建议你下载xcode的.xip文件并安装它。 以下是为苹果开发人员下载xcode或任何其他开发工具的链接。 https://developer.apple.com/download/more/ I suggest you to download .xip file of xcode and install it. Below is the link to download xcode or anyother development tool for apple developer. https://dev ...
  • HOWTO将命令行参数从Xcode IDE传递到您的程序 打开您的项目的活动计划 。 最简单的方法是从主菜单中进行。 选择产品/计划/编辑计划... 在架构编辑器中,您会在左侧看到几个构建目标; 你想要的是“Run YourProjectName”目标。 选择它。 在右侧,您会看到四个子选项卡,包括“信息”,“参数”,“选项”和“诊断”。 选择参数 添加/删除您需要的任何参数。 在你的情况下,添加/phi作为第一个参数,然后添加10作为第二个参数。 值得注意的是:这也是您可以在启动时指定程序的当前工作目录的 ...
  • 我正在使用Snow Leopard + Xcode, xcodebuild和xcrun都出现在/usr/bin 。 无论如何,它们应该出现在/Developer/usr/bin - 您只需要确保路径在$PATH变量中。 您可以在shell配置文件中设置它( ~/.bashrc用于bash ),如下所示: export PATH="/Developer/usr/bin:${PATH}" 至于sh和bash之间的区别, bash支持一些扩展和其他在更原始的sh找不到的特性; 但是 ,在Mac OS X上, s ...
  • 我在这个问题上读到,Xcode将其存储库与从终端手动使用git创建的存储库分开。 然而,我的经验表明Xcode实际上发现它很好。 你是对的,它很好(至少对我用它来说)。 无论是使用Xcode创建存储库还是从终端手动创建存储库,功能是否重要? 不,它没有。 两者可以在同一个项目中互换使用吗? 是否会使用相同的存储库? 是的,是的。 也许是最新的Xcode 4.6和这方面的改进,这就是为什么上面提到的问题提出了我没有遇到的问题? 可能,尽管至少在Xcode 4.5中它也适用于我。 I read on this ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)