https://github.com/jhu-ep-coursera/fullstack-course3-module3-movies
我使用此仓库,运行rake db:seed
项目,希望进行sqlite更新,然后在gem 'sqlite3', '~> 1.3.13'
中添加Gemfile
。
项目出现错误
(base) ➜ fullstack-course3-module3-movies git:(master) ✗ bundle
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.4) was resolved to 4.2.4, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.1)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (= 4.2.4)', in any of the sources.
答案 0 :(得分:1)
您在计算机上安装了捆绑器#YYYY format of year - %Y
df = pd.DataFrame({'dtimes':['27SEP2018:05:02:11','27JAN2018:05:02:11']})
df['dtimes'] = pd.to_datetime(df['dtimes'],format = '%d%b%Y:%H:%M:%S')
print (df)
dtimes
0 2018-09-27 05:02:11
1 2018-01-27 05:02:11
,但显然您的Gemfile需要2.0.1
。
您可以像这样安装所需的捆绑器版本:
bundler (< 2.0, >= 1.3.0)