我正在尝试通过R提示安装包,方法如下:
install.packages('RMySQL')
Run Code Online (Sandbox Code Playgroud)
但输出如下:
--- Please select a CRAN mirror for use in this session ---
Run Code Online (Sandbox Code Playgroud)
没有别的!我无法找到解决这个非常基本问题的方法.为了选择CRAN镜像,我应该输入什么?
编辑:
操作系统:Mac-OS X 10.6.8 R版本:2.15.0
我正在尝试通过以下方式安装pycurl:
sudo pip install pycurl
Run Code Online (Sandbox Code Playgroud)
它下载得很好,但是当它运行setup.py时,我得到以下回溯:
Downloading/unpacking pycurl
Running setup.py egg_info for package pycurl
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/pycurl/setup.py", line 563, in <module>
ext = get_extension()
File "/tmp/pip-build-root/pycurl/setup.py", line 368, in get_extension
ext_config = ExtensionConfiguration()
File "/tmp/pip-build-root/pycurl/setup.py", line 65, in __init__
self.configure()
File "/tmp/pip-build-root/pycurl/setup.py", line 100, in configure_unix
raise ConfigurationError(msg)
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
Complete output from command python setup.py egg_info:
Traceback (most recent …Run Code Online (Sandbox Code Playgroud) 当我尝试安装rmagick时,我收到以下错误消息:
Can't install RMagick 2.13.1. Can't find MagickWand.h.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Run Code Online (Sandbox Code Playgroud)
我使用的是Mac OSX 10.6.8,ruby 1.9.2p290,rvm 1.10.2.
任何人都可以帮我解决这个问题.
我正在开发一个django应用程序,我正在使用pip来管理我的需求.如何安装特定的git提交?
在我的情况下,我需要安装此提交:https: //github.com/aladagemre/django-notification/commit/2927346f4c513a217ac8ad076e494dd1adbf70e1
我们正在将包管理从手动更新文件转移到NuGet.我正在尝试安装旧版本的软件包以匹配我们在源代码管理中已有的软件包.没有办法从UI执行此操作,因此我使用命令行来获取正确的版本.
出于某种原因,Install-Package继续告诉我nuget画廊无法访问.
nuget.org [ https://www.nuget.org/api/v2/]的来源无法访问.回到NuGet本地缓存
这只发生在我们的一个解决方案中.如果我在同一个存储库中创建新解决方案或使用另一个解决方案,则将按预期安装包.我甚至可以在虚拟解决方案中安装软件包以填充本地缓存,然后在故障解决方案中成功安装它们.我试过Invoke-WebRequest从NuGet控制台获取URL,我得到了一个HTTP 200.
是什么导致这个?有没有办法在每个解决方案/项目的基础上覆盖包源?
如何将插件安装到Sublime Text编辑器?
我想将Emmet插件安装到Sublime Text 2编辑器.
我签署了IPA以进行临时分发.我可以使用Flash Builder安装它.不过,我想通过iTunes 12安装发布版本.将其拖动到:
......不起作用?有没有人知道如何使用新的iTunes 12做到这一点?
我的应用程序安装其他应用程序,它需要跟踪它已安装的应用程序.当然,这可以通过简单地保留已安装的应用程序列表来实现.但这不应该是必要的!PackageManager应该负责维护installedBy(a,b)关系.事实上,根据API,它是:
public abstract String getInstallerPackageName(String packageName) - 检索安装包的应用程序的包名称.这确定了包裹来自哪个市场.
使用Intent安装APK
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)
使用Intent卸载APK:
Intent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts("package",
getPackageManager().getPackageArchiveInfo(apkUri.getPath(), 0).packageName,null));
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)
这显然不是Android Market安装/卸载软件包的方式.他们使用更丰富的PackageManager版本.通过从Android Git存储库下载Android源代码可以看到这一点.以下是与Intent方法相对应的两种隐藏方法.不幸的是,外部开发人员无法使用它们.但也许他们将来会是这样?
使用PackageManager安装APK
/**
* @hide
*
* Install a package. Since this may take a little while, the result will
* be posted back to the given observer. An installation will fail if the calling context
* lacks the {@link android.Manifest.permission#INSTALL_PACKAGES} permission, if the
* package named in …Run Code Online (Sandbox Code Playgroud) 我通常通过pip安装了python包.
对于Google App Engine,我需要将软件包安装到另一个目标目录.
我试过了:
pip install -I flask-restful --target ./lib
但它失败了:
必须提供home或prefix/exec-prefix - 而不是两者
我怎样才能让它发挥作用?
我试图测试mongoDB,看看它是否适合我.我下载了32位Windows版本,但不知道从现在开始如何继续.
我通常使用WAMP服务在我的本地计算机上进行开发.我可以在Wamp上运行mongoDB吗?
然而,什么是最好的(最简单!)方式使它在Windows上工作?
谢谢!