我最近将R和Rstudio下载到了我的电脑上.
当我尝试安装包ncdf(或任何包)时,我收到以下消息:
> install.packages("ncdf")
Installing package into ‘C:/Users/Talos/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/ncdf_1.6.7.zip'
Content type 'application/zip' length 358300 bytes (349 Kb)
opened URL
downloaded 349 Kb
package ‘ncdf’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Talos\AppData\Local\Temp\RtmpKuMfwR\downloaded_packages
> load("ncdf")
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
cannot open compressed file 'ncdf', probable reason 'No such file or directory' …Run Code Online (Sandbox Code Playgroud) 我正在尝试在我的共享Godaddy托管上安装作曲家.我需要作曲家来安装laravel.我正在使用PUTTY通过SSH连接.键入时,我成功连接
-bash-3.2$ ls
Run Code Online (Sandbox Code Playgroud)
我得到这些文件夹:
data html scctmp tmp
Run Code Online (Sandbox Code Playgroud)
然后我输入:
curl -sS https://getcomposer.org/installer | php
Run Code Online (Sandbox Code Playgroud)
它回报我:
Content-type: text/html
<br />
<b>Parse error</b>: syntax error, unexpected T_NEW in <b>-</b> on line <b>382</b><br />
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
如何安装Dart,以便可以在终端中使用该语言?(对于基于UNIX的系统,例如Mac)
我正在运行ArchLinux,我的python版本是2.7.8,BLAS并且LAPACK都安装了:
% pacman -Qs blas; pacman -Qs lapack
local/blas 3.5.0-1
Basic Linear Algebra Subprograms
local/lapack 3.5.0-1
Linear Algebra PACKage
Run Code Online (Sandbox Code Playgroud)
Numpy已安装完毕sudo pip2 install numpy,它确认它同时看到BLAS和LAPACK:
>>> numpy.show_config()
blas_info:
libraries = ['blas']
library_dirs = ['/usr/lib64']
language = f77
lapack_info:
libraries = ['lapack']
library_dirs = ['/usr/lib64']
language = f77
atlas_threads_info:
NOT AVAILABLE
blas_opt_info:
libraries = ['blas']
library_dirs = ['/usr/lib64']
language = f77
define_macros = [('NO_ATLAS_INFO', 1)]
atlas_blas_threads_info:
NOT AVAILABLE
openblas_info: …Run Code Online (Sandbox Code Playgroud) 我已经提到了以下关于stackoverflow的解决方案,但是我仍然遇到相同的问题:
上面的链接中引用的以下命令未解决该问题:
brew安装mysql
显然,问题仍然存在,返回以下输出:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... no
sqlite3 is missing. Try 'port install sqlite3 +universal',
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log …Run Code Online (Sandbox Code Playgroud) 虽然有很好的描述如何设置ROUGE评估,但我无法完全完成安装的任何地方.
我想开始咕噜咕噜,我得到以下信息:
c:\repositories\kunde_1\themes-projekt_1\projekt_1-responsive\source>grunt
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started
Run Code Online (Sandbox Code Playgroud)
在运行grunt时你会看到:
C:\Users\dev_user>npm install -g grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm http 304 https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/resolve
npm http 304 …Run Code Online (Sandbox Code Playgroud) 我刚刚下载了R和Rstudio的新Mac版本,但是当我尝试通过Rstudio界面安装ggplot2时收到以下错误消息。有替代方法吗?
> install.packages("ggplot2")
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib
Warning in install.packages :
package ‘ggplot2’ is not available (for R version 3.2.1)
Installing package into ‘/Users/tom.glaser/Library/R/3.2/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib
Warning in install.packages :
package ‘ggplot2’ is not available (for R version 3.2.1)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/macosx/contrib/3.2
Warning message:
package ‘ggplot2’ is not available (for R version …Run Code Online (Sandbox Code Playgroud) 我最近写了一个包含命令行工具的包.setup.py看起来像这样
from setuptools import setup
setup(...
entry_points = {
'console_scripts': [
'cmdname = modulename.binary:main',
],
},
...)
Run Code Online (Sandbox Code Playgroud)
当我在没有--user标志的情况下安装它时,一切都很好
$ sudo python setup.py install
$ cmdname
Yes, I'm here! Give me a command!
Run Code Online (Sandbox Code Playgroud)
但是,安装它没有root访问权限
$ python setup.py install --user
$ cmdname
-bash: cmdname: command not found
Run Code Online (Sandbox Code Playgroud)
我想应该有一个用户脚本链接到的目录应该导出到PATH?我怎样才能实现setuptools链接到入口点?或者那是不可能的?
我试图从本地zip文件安装R中的包.我在本地驱动器上有zip文件,但是当我转到Packages - >从本地zip文件安装包时,我收到以下警告:
> utils:::menuInstallLocal()
Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection
Run Code Online (Sandbox Code Playgroud)
另外:警告信息:
1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
2: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'cirt/DESCRIPTION', probable reason 'No such file or directory'
Run Code Online (Sandbox Code Playgroud)
这里发生了什么?
非常感谢,A
install ×10
packages ×3
r ×3
python ×2
bash ×1
blas ×1
command-line ×1
composer-php ×1
dart ×1
entry-point ×1
gem ×1
ggplot2 ×1
gruntjs ×1
installation ×1
javascript ×1
lapack ×1
local-files ×1
netcdf ×1
node.js ×1
npm ×1
numpy ×1
path ×1
perl ×1
perl-module ×1
rstudio ×1
setuptools ×1
sqlite ×1
ubuntu ×1